View source: R/generic_standardise.R
get_factor_recode | R Documentation |
get_factor_recode
get_factor_recode(config_path)
config_path |
path to the directory containing the config files for this dataset |
a named vector of expressions. There is one element (expression) per factor specified in the config files. The expressions are calls to readr::fct_recode corresponding to the level recode mapping for specified in the config files. Their names are the standard column names of the factor. Thus when unquote-spliced into mutate, the returned vector generates a valid set of named arguments for a mutate call that will recode the factor variables in the way specified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.