View source: R/flag_opioid_contributed.R
flag_opioid_contributed | R Documentation |
Given an MCOD dataframe, will search through contributory causes for opioid related codes, but will only flag rows for which the underlying cause is **NOT** an opioid-related death.
flag_opioid_contributed(processed_df, year = NULL)
processed_df |
processed dataframe |
year |
if NULL, will attempt to detect |
NOTE: This function really doesn't make sense for ICD-9 years. Use with caution.
new dataframe with an opioid_contributed column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.