Description Usage Arguments Details Value
Original name: .binWithEqualValuesBalanced
1 | bin_balanced(x, bins, tol = 1e-08, floor = TRUE)
|
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. |
floor |
Set to FALSE to postpone rounding on start and end values. |
Equal values of x end up in the same bin, and shortens the following bins. By not taking the floor, a better distribution of samples across bins is achieved.
Integer vector of same length as x, with unique value for each bin.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.