这看起来应该很简单,但我无法弄清楚或在网上找到解决方案。
我有一个清单
test<-list(a = list(c(4543, 25234, 56346, 676), c(545, 34647, 567567,
4564), c(785, 343, 95, 435)), b = list(c(90823, 2341, 989, 5645
), c(210938, 342345, 345, 78678), c(2094234, 2343, 23466, 45654
)))
Run Code Online (Sandbox Code Playgroud)
如何找到列表中最大值的位置?
答案是test[["b"]][[3]][1]
或者test[[2]][[3]][1]