A copy of the plyr::mapvalues function.
Usage
mv(x, from, to, warn_missing = TRUE)
Arguments
- x
The factor or vector to modify.
- from
A vector of the items to replace.
- to
A vector of replacement values.
- warn_missing
print a message if any of the old values are not actually present in x.
Value
plyr::mapvalues output