View source: R/flag_heroin_present.R
flag_heroin_present | R Documentation |
Heroin deaths were recorded in both ICD-9 and ICD-10 years. This creates a new column to flag when that death involved heroin and was an opioid death as defined by flag_opioid_death().
flag_heroin_present(processed_df, year = NULL, keep_cols = FALSE)
processed_df |
MCOD dataframe already processed |
year |
if NULL, will attempt to detect |
keep_cols |
keep intermediate columns |
a new dataframe with a binary heroin_present column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.