View source: R/flag_opium_present.R
flag_opium_present | R Documentation |
Note that ICD9 years did not include an opium code. We code it as 0 by default, but can be coded however specified in missing_val parameter. This function flags all opioid deaths that involved opium.
flag_opium_present(processed_df, year = NULL, missing_val = 0)
processed_df |
MCOD dataframe already processed |
year |
if NULL, will attempt to detect |
missing_val |
value to indicate missing (i.e., code did not exist) |
a new dataframe with 1 additional column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.