Binning the data to given bins.
executeBinning(x_vec, breaks = NULL, nbin.max = 100, method = "freq")
A list with the following fields:
labels
: An integer vector with same length as x_vec
, where labels[i]==k
means the i-th element of x_vec
is in the k-th bin.
breaks
: Breaks of bins used for binning.
The data to be binned.
A numeric vector representing breaks of bins (If NULL
, automatically generated).
The maximum number of bins (used only if breaks=NULL
).
"freq"
for equal frequency binning or "width"
for equal width binning (used only if breaks=NULL
).
Kenji Kondo