| cb_apply_col_spec | R Documentation |
cb_apply_col_spec() applies column definitions contained in a col_spec
object (typically created using readr::cols()), to the chosen columns in a
data.frame.
NOTE: This is currently only implemented for column specifications specifying conversion to a factor variable.
cb_apply_col_spec(
d,
cspec,
warn_missing_levels = TRUE,
set_spec_attribute = FALSE,
set_problems_attribute = TRUE
)
d |
The |
cspec |
The |
warn_missing_levels |
Warn if any values in |
set_spec_attribute |
Should the |
set_problems_attribute |
Should the |
A data.frame based on d, with corresponding columns changed
according to the values specified in cspec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.