Re: [R] Retrieving data from nested lists

2015-05-27 Thread David Winsemius
On May 26, 2015, at 3:59 PM, blue honour via R-help wrote: > Dear R users, > I have a question regarding retrieving data from nested lists. To illustrate, > here is an example input: > d1<-data.table(v1=c(3,4),v2=c(2,5)) > d2<-data.table(v1=c(1,2),v2=c(1,1))l1<-list(d1,name="test")l2<-list(d2,na

[R] Retrieving data from nested lists

2015-05-26 Thread blue honour via R-help
Dear R users, I have a question regarding retrieving data from nested lists. To illustrate, here is an example input: d1<-data.table(v1=c(3,4),v2=c(2,5)) d2<-data.table(v1=c(1,2),v2=c(1,1))l1<-list(d1,name="test")l2<-list(d2,name="test2")motherlist<-list()motherlist$l1<-l1motherlist$l2<-l2 Let's s