Description Usage Arguments Value Examples
Set names of object by matching object's old names to names of lookup table.
This will ensure that object's names will always named correctly.
This function also wraps rlang::set_names()
.
1 | set_names_match(x, lookup = x, invert = FALSE, quiet = FALSE, ...)
|
x |
Vector to name. |
lookup |
Lookup vector: the names of |
invert |
Logical: If |
quiet |
Logical: If |
... |
passed to |
x
with new names
1 2 3 4 | set_names_match(iris, c("Sepal.Length" = "SL",
"Sepal.Width" = "SW",
"Petal.Length" = "PL")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.