View source: R/flag_opioid_deaths.R
flag_opioid_deaths | R Documentation |
Given an MCOD dataframe, will apply ISW7 rules to flag opioid deaths for both ICD9 and ICD10 codes. Expects you to run unite_records() first. If you don't, it will do so, but will remove that columns by default. Change keep_cols = TRUE to keep it.
flag_opioid_deaths(processed_df, year = NULL, keep_cols = FALSE)
processed_df |
processed dataframe |
year |
if NULL, will attempt to detect |
keep_cols |
keep intermediate columns |
new dataframe with a binary opioid_death column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.