Description Usage Arguments Value Examples
using a recode matrix (called a varmap), which has columns
'code' and 'value' (and perhaps others),
rename a variable. this is a convenient wrapper around
the car::recode function
1  | recode.varmap(x, varmap, as.factor.result = TRUE, ...)
 | 
x | 
 the variable to recode  | 
varmap | 
 a data.frame describing the recodes, which has columns called 'code' and 'value'  | 
as.factor.result | 
 if TRUE, turn the result into a factor  | 
... | 
 additional arguments to pass to car::recode  | 
the recoded variable
1 2 3 4  | ## Not run: 
  ## TODO -- write example
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.