Learn R Programming

metan (version 1.7.0)

rbind_fill: Combines data.frames by row filling missing values

Description

Helper function that combines data.frames by row and fills with . missing values.

Usage

rbind_fill(..., fill = ".")

Arguments

...

Input dataframes.

fill

What use to fill? Default is "."

Value

A data frame.

Examples

Run this code
# NOT RUN {
df1 <- data.frame(v1 = c(1, 2), v2 = c(2, 3))
df2 <- data.frame(v3 = c(4, 5))
rbind_fill(df1, df2)
rbind_fill(df1, df2, fill = "NA")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab