Recodes the values of a variable. Function resembles the
function from the
car package, but uses a lookup table to specify old and new values.
a vector (e.g. numeric, character, or factor)
a data.frame with exact two columns. First column contains old values, second column new values. Values which do not occur in the old column remain unchanged.
a vector of the same length as
var with recoded values
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.