Hi there, does anyone know why base R's cut() function formats output bins in the
(] convention, as opposed to, say,
. Is there a way to change how the output is formatted?
library(dplyr) set.seed(1234) d <- data.frame( int_var = sample.int(50, 50) ) d %>% mutate( group_var = cut(int_var, breaks = c(0, 10, 20, 30, 40, 50)) )