Trying to count occurrences of various medications in an open response variable- using the below, and some are not being counted-
df_linelist$malaria_meds_prescribed <- str_count(tolower(df_linelist$medication_prescribed2),"ALU Adult | Amodiaquine | Anti-Malaria | Anti-Malaria drugs | Anti-Malaria injection | Artemether and Lumefantrin (Coartem) | Artesunate +Lumfrantrime | Artesunate | Artesunate Injection | Artesunate injection | chloroquine | chloroquine sirop | Coartem | Coartem (Artemether and Lumefantrin) | I.V Artesunate/ Artesunate injections | Plaquenil | Quinine tabs |
chloroquine,")