This function provides a table with drug class and category information all of the known drugs.
lookup( drug_vec = NULL, ..., searchClass = TRUE, searchCategory = TRUE, searchSynonym = TRUE )
drug_vec | a vector of strings holding possible drug names |
---|---|
... | multiple strings holding possible drug names |
searchClass | Should the substances listed in |
searchCategory | Should the substances listed in |
searchSynonym | Should the substances listed in |
A lookup table with category data.frame
having four columns:
original search term, drug class, drug category, and drug street name.
lookup("zip", "shrooms")#> original_word class category synonym #> 1 zip stimulant cocaine zip #> 2 zip cannabis marijuana zip #> 3 zip stimulant methamphetamine zip #> 4 shrooms hallucinogen mushrooms shrooms #> 5 shrooms hallucinogen psilocybin shrooms