Create Subgroups
Examples
create_subgrps(c(1:10), c("<2", "2-5", ">5"))
#> [1] "<2" "2-5" "2-5" "2-5" "2-5" ">5" ">5" ">5" ">5" ">5"
create_subgrps(c(1:10), c("<=2", ">2-5", ">5"))
#> [1] "<=2" "<=2" ">2-5" ">2-5" ">2-5" ">5" ">5" ">5" ">5" ">5"
create_subgrps(c(1:10), c("<2", "2-<5", ">=5"))
#> [1] "<2" "2-<5" "2-<5" "2-<5" ">=5" ">=5" ">=5" ">=5" ">=5" ">=5"