x is a factor, the named levels of the factor will be
replaced with the new values.
factor or character vector to modify
named character vector, with new values as values, and old values as names.
print a message if any of the old values are
not actually present in
This function works only on character vectors and factors, but the
mapvalues function works on vectors of any type and factors,
and instead of a named vector specifying the original and replacement values,
it takes two separate vectors
mapvalues to replace values with vectors of any type
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.