do_recode | R Documentation |
Recode a vector
do_recode(x, old, new, new_label = NULL, update = FALSE, verbose = FALSE)
x |
some vector to be transformed |
old |
character (or coercible). value in the x to be translated into a new value by recoding. |
new |
character (or coercible). Column indicating where the new values for the recoding process exist. It is positionally tied to a particular |
new_label |
character (or convertable to character). The factor label that |
update |
logical. Governs whether x is modified in place. If |
verbose |
logical. Should warnings be displayed/provided? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.