Description Usage Arguments Value See Also Examples
Creates bins given breaks
1 | create_bins(x, breaks, method = "cuts")
|
x |
X is a numeric vector which is to be discretized |
breaks |
Breaks are the breaks for the vector X to be broken at. This excludes endpoints |
method |
the approach to bin the variable, can either be cuts or hinge. |
A vector same length as X is returned with the numeric discretization
1 | create_bins(1:10, c(3, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.