R/discretize.R
get_breaks.Rd
Calculate breaks to discretize a numeric vector, using different methods
get_breaks(x, n = 5, method = break_methods())
a numeric vector
integer indicating the number of intervals/bins desired
a character of length 1, indicating the method to use. Possible values are c("jenks", "isowidth", "quantile")
a numeric vector of length <= n + 1.
get_breaks(1:100, 5)
#> [1] 1 20 40 60 80 100