Adds an infection_type_src column indicating whether the infection type
was present in the raw data ("observed"), derived from dates ("inferred"), or
could not be determined ("unknown").
Usage
prep_flag_hai_inferred(
data,
infection_type_col = "infection_type",
infection_type_method_col = "infection_type_method"
)Arguments
- data
Data frame.
- infection_type_col
Character. Raw/observed infection type column. Default "infection_type".
- infection_type_method_col
Character. Method column added by
prep_derive_hai_cai(). Default "infection_type_method".