Btibert3 Btibert3 - 1 year ago 76
R Question

Combine two data frames by rows (rbind) when they have different sets of columns

Is it possible to row bind two data frames that don't have the same set of columns? I am hoping to retain the columns that do not match after the bind.

I am new to R but figure that there has to be a fairly quick way to do this.

Many thanks,


Answer Source

rbind.fill from the package plyr might be what you are looking for.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download