| map_values | R Documentation |
Replaces all values in x which match old with values in new.
Values are matched with base::match().
map_values(x, old, new)
x |
( |
old |
( |
new |
( |
(vector()) of the same length as x.
x = letters[1:5]
# replace all "b" with "_b_", and all "c" with "_c_"
old = c("b", "c")
new = c("_b_", "_c_")
map_values(x, old, new)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.