rename_values_base | R Documentation |
This function replaces character values with new character values, which is useful when performing rename operations when values are held in character vectors.
rename_values_base(
x,
...,
default_value = x,
warn_missing = TRUE,
warn_duplicated = TRUE
)
x |
Vector of values to replace |
... |
Key/value pairs in the form |
default_value |
A vector of values to use as the default should the value not
be found in |
warn_missing |
Print a message if any old names are not actually present in x |
warn_duplicated |
Print a message if any name appears more than once in x after the operation. |
A vector with values replaced
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.