[R] rbind with different columns
Karl Ove Hufthammer
karl at huftis.org
Tue Oct 20 16:05:39 CEST 2009
In article <4ADDC1D0.2040506 at yahoo.de>, niederlein-rstat at yahoo.de
says...
> In every list entry is a data.frame but the columns are only partially
> the same. If I have exactly the same columns, I could do the following
> command to combine my data:
>
> do.call("rbind", myList)
>
> but of course it does not work with differnt column names. Is there any
> easy way to retrieve a combined table like this:
You're in luck. 'rbind.fill' in the 'plyr' package does exactly what you
want.
--
Karl Ove Hufthammer
More information about the R-help
mailing list