[R] From "list" to "matrix"
megh
megh700004 at yahoo.com
Sun Jul 5 21:10:22 CEST 2009
Suppose, I have following
vec <- vector("list", length=3)
for (i in 1:3) vec[[i]] <- matrix(rnorm((i+3)*2), (i+3))
vec
Now I want to change the type of "vec" from list to a matrix with (4+5+6)
rows and 2 columns. How can I do that?
Thanks and regards,
--
View this message in context: http://www.nabble.com/From-%22list%22-to-%22matrix%22-tp24345922p24345922.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list