Skip to content
Prev 96 / 63424 Next

R-alpha: list assignment

Which is the same (?) as the

R> l <- list("11" = 1:5)
R> l
$11
[1] 1 2 3 4 5

R> unlist(l)
111 112 113 114 115 
  1   2   3   4   5 

I ran into this weekend ...

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel 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-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-