recoder {ETLUtils}R Documentation

Recodes the values of a character vector

Description

Recodes the values of a character vector

Usage

recoder(x, from = c(), to = c())

Arguments

x

character vector

from

character vector with old values

to

character vector with new values

Value

x where from values are recoded to the supplied to values

See Also

match

Examples

recoder(x=append(LETTERS, NA, 5), from = c("A","B"), to = c("a.123","b.123")) 

[Package ETLUtils version 1.5 Index]