[R] Merging nested lists

Alex P. alexpegucci at yahoo.com
Thu Oct 28 05:14:06 CEST 2010


Hello All,

I have multiple "list of lists" in the form of 

Mylist1[[N]][[K]]$Name_i, 

with N=1..6, K=1..3, and i=1..7. Each Name_i is a matrix. I have 30 of these objects Mylist1, Mylist2, ... 

I would like to merge these lists by each Name_i using rbind, but I couldn't figure out how to do it. What I want at the end is a single "list of lists", again in the form of Mylist[[N]][[K]]$Name_i. Manually doing it is not feasible given the large number of Mylist objects. 

Thanks in advance,

Alex



More information about the R-help mailing list