Prep variables for calls to mml.sdf
Usage
es_recode(data, vars, from, to)
Arguments
- data
a data frame to be edited
- vars
variables to modify
- from
recode from these levels
- to
recode to this level, or levels
Value
the data with each variable in vars recoded from missingFrom to missingTo
Details
If to is length 1, then all variables in vars are recoded from every from
to the level of to.
When to is the same length as from then the ith level of from is recoded
to the ith level of to.