create_bins {binst} | R Documentation |
Creates bins given breaks
Description
Creates bins given breaks
Usage
create_bins(x, breaks, method = "cuts")
Arguments
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. |
Value
A vector same length as X is returned with the numeric discretization
See Also
Examples
create_bins(1:10, c(3, 5))
[Package binst version 0.2.1 Index]