rbind_tables: Bind tables by row

View source: R/tables.R

rbind_tablesR Documentation

Bind tables by row

Description

Same as rbindlist, but returns a table of the same type as the inputs.

Usage

rbind_tables(l, use.names = fill, fill = TRUE, ...)

Arguments

l

List containing data.table, data.frame or list objects.

use.names

Whether to bind tables by matching column names.

fill

Whether to fill missing columns with NA.

...

Arguments passed to rbindlist.

See Also

Other Table functions: as_table, create_table, is_table, parse_table_type, parse_table, remove_empty_dimensions, write_table

Examples

ldf <- list(
  data.frame(x = 1),
  data.frame(x = 2)
)
str(rbind_tables(ldf))
## Not run: 
ldt <- lapply(ldf, as_table, "data.table")
str(rbind_tables(ldt))
ltb <- lapply(ldf, as_table, "tibble")
str(rbind_tables(ltb))

## End(Not run)

columbia-glacier/cgr documentation built on Jan. 17, 2024, 2:42 p.m.