@Denis: It's also worth looking into the plyr package for this. rbind.fill(...) allows you to combine data.frames per line.
install.packages("plyr") library(plyr)
help (rbind.fill) For more details see below:
rbinds list of data frames filling in the missing columns with NA.
Using
rbind.fill(...) Arguments
... input data frames for joining rows. The first argument may be a list of data frames, in which case all other arguments are ignored.
More details
This extension for rbind , which is added to columns that are absent in all inputs, accepts a list of data frames and is much faster.
The names and types of columns in the output will be displayed in the order in which they were found. Validation is not performed to ensure that each column has a consistent input type.
As far as I know, there is no cbind.fill ; however, there is a custom function cbind.fill that allows you to combine data.frames column by column. More details here .
There are two solutions: one dependent on rbind.fill in the plyr package , and the other independent of rbind.fill .
source share