lookup {DOPE}R Documentation

Make a table with the class and category for a drug name

Description

This function provides a table with drug class and category information all of the known drugs.

Usage

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")

[Package DOPE version 2.1.0 Index]