Description Usage Arguments Details Value Author(s)
Recode collection of variables so that they all have the same unique values.
1 |
df |
A dataframe to recode |
sPatterns |
list of regexps matching strings to be recoded |
sTargets |
list of targets corresponding to patterns in 'sPatterns' |
nRecodes |
specification for recoding numbers (see |
This is a wrapper around recodeMatches
& recode
(in library(car))
for recoding all strings and numbers variables in a dataframe.
a dataframe (recoded)
Ben Veal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.