Skip to contents

Usage

categorize_prism(
  value,
  location,
  disease,
  as_of = lubridate::today(),
  prism_bin_names = default_prism_bin_names
)

Arguments

value

value to categorize

location

vector of location of length equal to value or a single location for all value.

disease

vector of disease of length equal to value or a single disease for all value.

as_of

date for which to get the PRISM cutpoints. Defaults to today.

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 the label_sets argument to categorize_vector(). Defaults to the standard PRISM bin names in title case: default_prism_bin_names.

Value

A factor vector of category labels, equal in length to the input vector value.