Description Usage Arguments Value Examples
View source: R/popReconstruct_settings.R
Helper function to transform values in a data.table
1 | transform_dt(dt, value_col, transformation, transformation_arguments)
|
dt |
[ |
value_col |
[ |
transformation |
[ |
transformation_arguments |
[ |
invisibly return dt
with transformed values.
1 2 3 4 5 6 | popMethods:::transform_dt(
dt = data.table::data.table(year = 1950, value = 2.5),
value_col = "value",
transformation = demUtils::logit,
transformation_arguments = list(domain_lower = 0, domain_upper = 5)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.