Hi all,

I'm trying to avoid loops (no real reason, just as an exercise).

Given a list:

list(data.frame(a=1:3,b=letters[1:3]),data.frame(x=1:5,b=LETTERS[1:5]))

Is there an easy way to collapse this to a single dataframe

result<-data.frame(a=c(1:3,1:5),b=c(letters[1:3],LETTERS[1:5]))


Thanks

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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