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

Btibert3 picture Btibert3 · Aug 4, 2010 · Viewed 324.6k times · Source

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.

Answer

Jyotirmoy Bhattacharya picture Jyotirmoy Bhattacharya · Aug 4, 2010

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