recode_var | R Documentation |
Recode values with a given mapping
recode_var(x, mapping, translate = FALSE, check_mapping = FALSE)
x |
value to recode |
mapping |
list of mapping db value to label, label as name and db value as value |
translate |
if TRUE translate labels with |
check_mapping |
if TRUE check if mapping is complete (if code in data are not mapped), NULL=apply default value in options |
factor vector of recoded values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.