Skip to content
Prev 11762 / 398502 Next

extraction from a list of vectors

On Sun, 17 Jun 2001 17:10:26 -0500, you wrote:

            
I don't know if this is fast or not, but I think it gives the result
you want:

unlist(sapply(myidx,function(x) mylist[[x]]))

Duncan Murdoch

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._