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
)

Arguments

drug_vec

a vector of strings holding possible drug names

...

multiple strings holding possible drug names

searchClass

Should the substances listed in ... be searched for in column class? Defaults to TRUE.

searchCategory

Should the substances listed in ... be searched for in column category? Defaults to TRUE.

searchSynonym

Should the substances listed in ... be searched for in column synonym? Defaults to TRUE.

Value

A lookup table with category data.frame having four columns: original search term, drug class, drug category, and drug street name.

Examples

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