Discretizes numeric variables
discretize(xx, breaks = 3, boundaries = NULL, categories = NULL, w = NULL)matrix or data.frame whose variables needs to be discretized.
number of categories for each variable. Ignored if boundaries != NULL.
user-defined upper and lower limit matrix of discretization
for each variable. Default is NULL.
user-defined category names for each variable. Default is NULL.
sample weights for quantile calculation.
a list consists of:
data.frame of discretized variables. Each variable is a factor.
upper and lower limit matrix of discretization for each variable.
category names for each variable.
Uses quantiles for discretization. However, quantiles may be equal in some cases. Then equal interval discretization used instead.