Convert a numeric into a quantile categorical variable, labelled by lower and upper bounds of quantiles (string)

labelled_quantile(x)

Arguments

x

Vector, column, or numeric variable to be passed through

Examples

labelled_quantile(c(1,1,1,1,2,3,5,5,6))
#> [1] "1.2_TO_2.8" "1.2_TO_2.8" "1.2_TO_2.8" "1.2_TO_2.8" "2.8_TO_5"  
#> [6] "5_TO_6"     "6_UP"       "6_UP"       "6_UP"