[R] How to iteratively extract elements out of a list

Mark Lyman mark.lyman at gmail.com
Sat Aug 26 17:32:39 CEST 2006


lapply(m,function(x)x[x>2])
[[1]]
[1] 3 4

[[2]]
[1] 4 5

[[3]]
[1] 4



More information about the R-help mailing list