mapvalues | R Documentation |
Copy of plyr::mapvalues
mapvalues(x, from, to, warn_missing = T)
x |
A vector |
from |
A vector to change from |
to |
A vector to change to, can be same length or length 1 (recycled) |
warn_missing |
Warn if from values not present |
A vector
mapvalues(0:9, from = 3:5, to = c(-1, -1, -1))
mapvalues(0:9, from = 3:5, to = -1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.