Skip to contents

Usage

categorize_prism(
  values,
  locations,
  diseases,
  prism_bin_names = c("Very Low", "Low", "Moderate", "High", "Very High")
)

Arguments

values

values to categorize

locations

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

diseases

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

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: c("Very Low", "Low", "Moderate", "High", "Very High").

Value

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