Closed davidhodge931 closed 2 years ago
library(kimisc)
library(santoku)
chop(runif(10),
breaks = seq(0, 1, by = 0.25),
labels = lbl_intervals(fmt = scales::label_dollar()),
left = TRUE,
close_end = TRUE,
drop = FALSE)
cut_format(runif(10), seq(0, 1, by = 0.25),
format_fun = scales::label_dollar(),
right = FALSE,
include.lowest = TRUE)
For use in chop functions, you'll need to:
col_intervals_left <- ifelse(col_intervals_right == TRUE, FALSE, TRUE)
Alternative to kimisc::cut_format would be santoku::chop https://hughjonesd.github.io/santoku/