Learn R Programming

petersenlab (version 1.1.0)

columnBindFill: Column Bind and Fill.

Description

Column bind dataframes and fill with NAs.

Usage

columnBindFill(...)

Value

Dataframe with columns binded together.

Arguments

...

Names of multiple dataframes.

Details

Binds columns of two or more dataframes together, and fills in missing rows.

See Also

https://stackoverflow.com/questions/7962267/cbind-a-dataframe-with-an-empty-dataframe-cbind-fill/7962286#7962286

Other dataManipulation: convert.magic(), dropColsWithAllNA(), dropRowsWithAllNA(), varsDifferentTypes()

Examples

Run this code
# Prepare Data
df1 <- data.frame(a = rnorm(5), b = rnorm(5))
df2 <- data.frame(c = rnorm(4), d = rnorm(4))

# Column Bind and Fill
columnBindFill(df1, df2)

Run the code above in your browser using DataLab