I have two lists, let's say
list1<-list(a=c(0,1,2),b=c(3,4,5));
list2<-list(a=c(7,8,9),b=c(10,11,12));
how to get a combined list how
list(a= rbind(c(0,1,2),c(7,8,9)), b = rbind(c(3,4,5),c(10,11,12)) )
I can do this for loops. Any other easier way to do this?
Thanks!
source
share