Description Usage Arguments Details Value Examples
Recode variables.
1 |
dat |
Datatable object. |
var |
Character or vector of characters with variable names. |
newvar |
Character or vector of characters with new variable names. |
old |
Old values. |
new |
New values (1 to 1 recoding). |
Avoid define the first value as missing, put missing values at the end of the old/new specification
Data frame with recoded variables.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.