The functions uses the input factor and generates a new factor with new levels.

recodeLevelsDS(x = NULL, classes = NULL)

Arguments

x

a factor vector

classes

a character vector the levels of the newt factor vector

Value

a factor vector with the new levels

Author

Gaye, A.