Replaces elements of a character vector based on a lookup defined by two parallel vectors. Each element exactly matching a pattern is replaced with the corresponding replacement.
Value
a character vector of the same length as x, with matching
elements replaced. Non-matching elements are returned unchanged.
See also
mGsub() for substring replacement.
Other data.recode:
asBinary(),
combLevels(),
dummy(),
nf(),
recodeX(),
revCode(),
stringsAsFactors()
