swap: Swap Elements in a Vector
Description
Swap Elements in a Vector
Usage
swap(vec, from, to = names(from), ...)
Arguments
vec
A character vector, or vector coercable to character.
from
A vector of elements to map from.
to
A vector of elements to map to.
...
Optional arguments passed to match
.