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

Description Usage Arguments Value Examples

View source: R/lookup.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
  lookup("zip", "shrooms")

DOPE documentation built on June 19, 2021, 1:06 a.m.