recodeLevelsDS {dsBase}R Documentation

Recodes the levels of a categorical variables

Description

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

Usage

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(s)

Gaye, A.


[Package dsBase version 6.3.0 ]