create_bins {binst} | R Documentation |
Creates bins given breaks
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
create_bins(1:10, c(3, 5))