bins.quantiles: Quantile-based binning

Description Usage Arguments Details See Also

View source: R/quantiles.R

Description

Cuts the data set x into roughly equal groups using quantiles.

Usage

1
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 target.bins.

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


jabiru/binr documentation built on May 18, 2019, 7:16 a.m.