DEA Drug Ontology"

knitr::opts_chunk$set(echo = FALSE)
library(conflicted)
suppressMessages(conflict_prefer("filter", "dplyr"))
library(dplyr)
#suppressPackageStartupMessages(library(tidyverse))

This is a summary of the the drugs on the DEA website.

load("../../data/dea_factsheets.rda")

class <- unique(dea_factsheets$class)

# class

category <- dea_factsheets %>%
  arrange(category) %>%
  # filter(category == "steroids") %>%
  select(category)


load("../../data/dea_brands.rda")

category2 <- unique(dea_brands$category)

brands <- dea_brands %>%
  arrange(category) %>%
  #filter(type == "oxycodone") %>%
  pull(brands)

load("../../data/dea_controlled.rda")
load("../../data/dea_street_names.rda")



#unique(slang$brand)
#unique(slang$Category)

duplicates <- dea_street_names %>%
  group_by(slang) %>%
  filter(n() > 1) %>%
  arrange(slang)

# unique(duplicates)

Fact Sheets

Two files, dea_factsheets.rda and dea_brands.rda, were created by scraping the "fact sheets" on the DEA website on September 10th 2020.

Drug Types

sort(class) %>%
  knitr::kable(col.names = "Class")

Drug Brands

PDFs

Two pdfs, with slang^[https://www.dea.gov/sites/default/files/resource-center/Publications/Intel%20Products/DIR-020-17%20Drug%20Slang%20Code%20Words.pdf] and controlled substances^[https://www.deadiversion.usdoj.gov/schedules/orangebook/c_cs_alpha.pdf] were download and processed to make slang.rda and controlled.rda.

Slang

Controlled Substances

Parsing the SUBSTANCES and names variables will be very difficult because the delimiters between drugs are not at all consistent.

Summary

knitr::include_graphics("./Drugs.jpg", error = FALSE)


Try the DOPE package in your browser

Any scripts or data that you put into this service are public.

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