Description Usage Arguments Value Examples
Map the unique values of a vector
1 | mapvalues_(x, facs, bNaturalSort = FALSE)
|
x |
factor or character |
facs |
character. It maps unique(x) to facs |
bNaturalSort |
binary. Whether to convert factor in natural order. |
factor
1 2 | mapvalues_(c("A","A","B","C"), c("one", "two", "three"))
mapvalues_(c("apple", "apple", "banana", "pineable", "pineable"), c(3, 2, 1), bNaturalSort = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.