make_anydiag_flag: make_anydiag_flag

Description Usage Arguments Value

Description

make_anydiag_flag

Usage

1
make_anydiag_flag(dataframe, col_regex, new_colname, code_regex)

Arguments

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

Value

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.


HorridTom/clahrcnwlhf documentation built on May 7, 2019, 4:02 a.m.