num.recode: Recodes the unique values of a vector using the values in a new vector.
Description
Recodes the unique values of a variate using the value in position
i of the new.values vector to replace the ith
sorted unique values of x. The new levels do
not have to be unique.
Usage
num.recode(x, new.values)
Value
A vector.
Arguments
x
The vector to be recoded.
new.values
A vector of length unique(x) containing values to use in
the recoding.