Description Usage Arguments Details Examples
Creates character/categorical variable by mapping old values to new categories
1 |
x |
A vector whose values will be mapped to new categories |
map |
A data.frame/data.table where the first variable is the old values and the second column is the new categories |
type |
Either "c" for character or "f" for factor. The parameter determines the type of vector that is returned. |
The function perpetuates the input label attribute to the output.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.