swap | R Documentation |
Swap Elements in a Vector
swap(vec, from, to = names(from), ...)
vec |
A character vector, or vector coercible to character. |
from |
A vector of elements to map from. |
to |
A vector of elements to map to. |
... |
Optional arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.