[R] rbind in array of lists

Cesar Caballero c.caballero at bcbl.eu
Sun Oct 12 08:14:09 CEST 2014


Hi all,

I have an array of lists. All lists have the same names and the vectors inside each name have the same dimension.

For instance,

a[1:4]
[[1]]
[[1]]$var1
[1] 1 2 3 4 5

[[1]]$var2
[1] 6 7


[[2]]
[[2]]$var1
[1]  2  4  6  8 10

[[2]]$var2
[1] 12 14

[[3]]
[[3]]$var1
[1]  3  6  9 12 15

[[3]]$var2
[1] 18 21


I would like to apply rbind to concatenate all vectors for a given name, e.g. concatenate all the a[[]]$a
How can I do that?

Thanks very much in advance.

Best wishes
Cesar


----------------------------------------------------------------------
Cesar Caballero
MRI engineer
www.bcbl.eu 

Legal disclaimer/Aviso legal/Lege-oharra: www.bcbl.eu/legal-disclaimer



More information about the R-help mailing list