Description Usage Arguments Value See Also Examples
View source: R/popReconstruct_draws.R
Inputs multiple lists of data.tables that will be combined
into one list of data.tables. data.tables are matched by the name of each
element of each list. This is different than data.table::rbindlist()
which inputs one list of data.tables and returns one combined data.table.
1 |
... |
multiple [ |
one [list()
] of many [data.table()
]
Other popReconstruct:
popReconstruct_fit()
,
popReconstruct_hyperparameters()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | list_dt1 <- list(
"population" = data.table::data.table(
sex = c("female", "male"),
value = 2,
method = 1
),
"deaths" = data.table::data.table(
sex = c("female", "male"),
value = 4,
method = 1
)
)
list_dt2 <- list(
"population" = data.table::data.table(
sex = c("female", "male"),
value = 2,
method = 2
),
"deaths" = data.table::data.table(
sex = c("female", "male"),
value = 4,
method = 2
)
)
combined_list_dt <- rbindlist_dts(list_dt1, list_dt2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.