Dear All,
I´m using the following code:

all1<-gg2[[1]][[1]]; for(i in 1:48){ all1 <- rbind(all1,gg2[[i]][[1]]) }

to create a new matrix that contains all the matrices in a list called gg2.
gg2 is a list that looks like

>> gg2
[[1]]
[[1]][[1]]
<matrix one>

[[2]]
[[2]][[1]]
<matrix two>
.
.
.
[[48]]
[[48]][[1]]
<matrix 48>

Is there a faster way to do the rbind?

i've tried do.call("rbind",gg2) but does not work.

Thank you for any hints or advice!

Best regards,
Carlos

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to