hist_bins {baizer} | R Documentation |
separate numeric x into bins
hist_bins(x, bins = 10, lim = c(min(x), max(x)), breaks = NULL, sort = FALSE)
x |
numeric vector |
bins |
bins number, defaults to 10 |
lim |
the min and max limits of bins, default as |
breaks |
assign breaks directly and will ignore |
sort |
sort the result tibble |
tibble
x <- dplyr::pull(mini_diamond, price, id)
hist_bins(x, bins = 20)