Learn R Programming

rsnps (version 0.6.0)

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 coercible to character.

from

A vector of elements to map from.

to

A vector of elements to map to.

...

Optional arguments passed to match()