Learn R Programming

rsnps (version 0.0.5)

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.