Perform binning.
binning(x, bins=4, method=c("quantile", "wtd.quantile", "kmeans"),
labels=NULL, ordered=TRUE, weights=NULL)
the numeric data to bin.
the number of bins to use.
whether to use "quantile", weighted quantile "wtd.quantile" or "kmeans" binning.
the labels or names to use for each of the bins.
whether to build an ordered factor or not.
vector of numeric weights for each observation for weighted quantile binning.
A factor is returned.
Bin the provided nmeric data into the specified number of bins using one of the supported methods. The bins will have the names specified by labels, if supplied. The result can optionally be an ordered factor.
Package home page: https://rattle.togaware.com