📅  最后修改于: 2022-03-11 14:52:01.244000             🧑  作者: Mango
代码示例4
> apply(p, 1, function(x) which(!is.na(x)) )
[[1]]
[1] 2 3
[[2]]
[1] 4 7
[[3]]
integer(0)
[[4]]
[1] 5
[[5]]
integer(0)