swap: Swap Elements in a Vector

View source: R/utils.R

swapR Documentation

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


ropensci/rsnps documentation built on July 31, 2023, 11:11 a.m.