Description Usage Arguments Details Examples
Flips a vector's values and its names
1 | flip_vector(x)
|
x |
Vector to be flipped |
This function is simply a wrapper for setNames(names(x), x)
1 2 3 | x <- c(1, 2, 3)
names(x) <- c("a", "b", "c")
flip_vector(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.