bins.quantiles {binr} | R Documentation |
Quantile-based binning
Description
Cuts the data set x into roughly equal groups using quantiles.
Usage
bins.quantiles(x, target.bins, max.breaks, verbose = FALSE)
Arguments
x |
A numeric vector to be cut in bins. |
target.bins |
Target number of bins, which may not be reached if the number of unique values is smaller than the specified value. |
max.breaks |
Maximum number of quantiles; must be at least as
large as |
verbose |
Indicates verbose output. |
Details
Because the number of unique values may be smaller than target.bins, the function gradually increases the number of quantiles up to max.breaks or until the target.bins number of bins is reached.
See Also
binr
, bins
, bins.greedy
, bins.optimize
[Package binr version 1.1.1 Index]