swap: Swap Elements in a Vector

Description Usage Arguments

Description

Swap Elements in a Vector

Usage

1
  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.


kevinushey/SNAPR documentation built on May 20, 2019, 9:09 a.m.