dptofactor | R Documentation |
Recode a variable to factor using the associated Code List
dptofactor(x, codelist = dpcodelist(x), warn = TRUE)
x |
the variable to recode |
codelist |
a |
warn |
give a warning when there is no code list. |
Returns a factor vector or x
when no Code List could be found
(codelist = NULL
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.