swap: Swap Elements in a Vector

Description Usage Arguments

View source: R/utils.R

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()


rsnps documentation built on Jan. 28, 2022, 5:07 p.m.