powered by
Create Subgroups
create_subgrps(ref_vec, grp_defs)
Character vector of the values in the subgroups
Vector of numeric values
Vector of strings with groupings defined. Format must be either: <00, >=00, 00-00, or 00-<00
create_subgrps(c(1:10), c("<2", "2-5", ">5")) create_subgrps(c(1:10), c("<=2", ">2-5", ">5")) create_subgrps(c(1:10), c("<2", "2-<5", ">=5"))
Run the code above in your browser using DataLab