plyr (version 1.6)

rbind.fill: Combine data.frames by row, filling in missing columns.

Description

rbinds a list of data frames filling missing columns with NA.

Usage

rbind.fill(...)

Arguments

...
input data frames to row bind together

Value

  • a single data frame

Details

This is an enhancement to rbind that adds in columns that are not present in all inputs, accepts a list of data frames, and operates substantially faster.

Column names and types in the output will appear in the order in which they were encountered. No checking is performed to ensure that each column is of consistent type in the inputs.

See Also

Other binding functions: rbind.fill.matrix

Examples

Run this code
rbind.fill(mtcars[c("mpg", "wt")], mtcars[c("wt", "cyl")])

Run the code above in your browser using DataLab