Description Usage Arguments Value Examples
Convenient wrapper around do.call("rbind", ...)
that
(a) sets the 'quote' argument to TRUE and (b) fills data frames with missing
columns with NAs of the appropriate class.
1 | bind_rows_data(..., fill = FALSE)
|
... |
Input data frames or list of data frames |
fill |
Logical indicating whether to fill missing columns in data frames with missing values. |
The list collapsed into a single data frame
1 2 3 4 5 6 7 8 | ## list of data frames with inconsistent columns
x <- as_tbl_data(mtcars[1:3, ])
xx <- x
xx$y <- "a"
l <- list(x, xx, mtcars)
## bind rows and fill missing columns with NAs
bind_rows_data(l, fill = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.