Categorize a vector of values into PRISM activity level bins.
Source:R/categorize_prism.R
categorize_prism.Rd
Uses categorize_vector()
and get_prism_cutpoints()
.
Arguments
- values
values to categorize
- locations
vector of locations of length equal to
values
or a single location for allvalues
.- diseases
vector of diseases of length equal to
values
or a single disease for allvalues
.- prism_bin_names
Bin names for the PRISM bins. in order from lowest to highest. Must be a vector of length 5.
list(prism_bin_names)
will be passed as thelabel_sets
argument tocategorize_vector()
. Defaults to the standard PRISM bin names in title case:default_prism_bin_names
.