[R] Append two lists

PIKAL Petr petr.pikal at precheza.cz
Fri Nov 2 15:02:28 CET 2012


Hi

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of PavloEs
> Sent: Friday, November 02, 2012 1:24 PM
> To: r-help at r-project.org
> Subject: [R] Append two lists
> 
> I have 50 GLM objects from which I have created 50 lists and I wish to
> append them to each other. I have tried the command
> "rbind(mlist$cHA,mlist$cHB)"
> which was succeful to append the first 2, but how can I merge the
> entire list without listing them all?

?do.call

do.call("rbind", mlist)

Regards
Petr

> 
> Thanks in advance
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Append-two-
> lists-tp4648224.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> 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.




More information about the R-help mailing list