Description Usage Arguments Value
Original name: .binWithEqualValuesMinRec
1 | bin_unique(x, bins, tol = 1e-08)
|
x |
Sorted numeric vector to sort into bins |
bins |
Intended number of bins |
tol |
Distance between successive values of x that are treated as equal |
Integer vector of same length as x, with unique value for each bin.
Each bin holds at least floor(length(x) / bins) records, or more if there
were values after the bin that were numerically equal to last value of the
bin. The actual number of bins might be differnt from argument bins due to
numerically equal values and is reported with attribute bins
.
Because of using floor in bin-width calculation, the last, i.e. bins, of
the bins may hold more values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.