Description Usage Arguments Value
make_anydiag_flag
1 | make_anydiag_flag(dataframe, col_regex, new_colname, code_regex)
|
dataframe |
the episode data |
col_regex |
regex to match diagnosis column names |
new_colname |
the name for the new flag column |
code_regex |
the regex to match the diagnosis codes |
dataframe with a new column appended, indicating presence of a diagnosis code matching code_regex in any of the columns whose names match col_regex.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.