Maps organism names to GBD RR pathogen categories and antibiotic class names
to RR drug categories in a single pass. Either mapping is skipped silently
when the corresponding column is absent from data.
Usage
daly_add_rr_mappings(
data,
organism_col = "organism_normalized",
class_col = "antibiotic_class"
)Arguments
- data
Data frame with organism and/or antibiotic class columns.
- organism_col
Character. Column with organism names to map to
rr_pathogen. Set toNULLto skip. Default"organism_normalized".- class_col
Character. Column with antibiotic class names to map to
rr_drug. Set toNULLto skip. Default"antibiotic_class".
Details
Pathogen mapping uses the organism taxonomy (get_organism_taxonomy());
drug class mapping uses inst/extdata/WHO_aware_class.csv.