Learn R Programming

ETLUtils (version 1.5)

recoder: 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

Run this code
# NOT RUN {
recoder(x=append(LETTERS, NA, 5), from = c("A","B"), to = c("a.123","b.123")) 
# }

Run the code above in your browser using DataLab