Description Usage Arguments Examples
Convert columns to a target class.
1 | transform_cols(data, cols, transformer, ...)
|
data |
Data to convert. |
cols |
Character vector with columns to convert. |
transformer |
A quoted function name that applies the conversion,
e.g. |
... |
Arguments passed to the |
1 2 3 | mtcars %>%
transform_cols("vs", "readr::parse_factor", levels = 0:1) %>%
transform_cols("vs", "forcats::fct_recode", low = "0", high = "1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.