as.data.table.Mashed_table {tatoo} | R Documentation |
Convert a Mashed Table to a data.table or data.frame
Description
Convert a Mashed Table to a data.table or data.frame
Usage
## S3 method for class 'Mashed_table'
as.data.table(
x,
keep.rownames = NULL,
...,
mash_method = attr(x, "mash_method"),
insert_blank_row = attr(x, "insert_blank_row"),
id_vars = attr(x, "id_vars"),
suffixes = names(x)
)
## S3 method for class 'Mashed_table'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
...,
mash_method = attr(x, "mash_method"),
insert_blank_row = attr(x, "insert_blank_row"),
id_vars = attr(x, "id_vars"),
suffixes = names(x)
)
Arguments
x |
|
keep.rownames |
ignored |
... |
passed on to |
mash_method |
either |
insert_blank_row |
Only if mashing rows: logical. Whether to insert blank rows between mash-groups. Warning: this converts all columns to character. Use with care. |
id_vars |
Only if mashing columns: one ore more colnames of the tables
to be mashed. If supplied, columns of both input tables are combined with
|
suffixes |
a character vector of length 2 specifying the suffixes to be used for making unique the names of columns. |
row.names |
ignored |
optional |
logical. If |
Value
a data.table or data.frame