swap: Exchange Existing set of Values for another set of Values

View source: R/swap.r

swapR Documentation

Exchange Existing set of Values for another set of Values

Description

Exchange Existing set of Values for another set of Values

Usage

swap(x, uniques, newUniques)

Arguments

x

Vector to apply the exchange over

uniques

(Sorted) vector of unique OLD values

newUniques

(Sorted) vector of unique NEW values

Value

Swapped vector of x

Examples

my.vect = c(1,2,2,2,4,4,4,3,3,3,3)
swap(my.vect,c(1,2,3,4),c(11,22,33,44))

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.