View source: R/flag_opioid_types.R
flag_opioid_types | R Documentation |
Creates 9 indicators for all opioid deaths. 7 for type of opioid (opium, heroin, natural, methadone, synethtic, other, unknown), 1 column for the number of opioids, and 1 column to indicate presence of more than one opioid.
flag_opioid_types(processed_df, year = NULL)
processed_df |
MCOD dataframe already processed |
year |
if NULL, will attempt to detect |
a new dataframe with 9 additional columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.