drug_county_biz: Download raw prescription data for individual drugs and...

View source: R/raw.R

drug_county_bizR Documentation

Download raw prescription data for individual drugs and business type by county into R

Description

Data from from non-contiguous states not yet processed and available.

Usage

drug_county_biz(
  drug = "Fentanyl",
  county = "Laurens",
  state = "GA",
  buyer_bus_act = "CHAIN PHARMACY",
  key = "WaPo"
)

Arguments

drug

Filter the data to one of 14 available drugs in the database (e.g. 'OXYCODONE')

county

Filter the data to only this county (e.g. 'Mingo')

state

Filter the data to county within this state (e.g. 'WV')

buyer_bus_act

If provided, filter the data to one of businesses in BUYER_BUS_ACT (e.g. 'CHAIN PHARMACY', 'HOSP/CLINIC')

key

Key needed to make query successful

See Also

https://www.washingtonpost.com/graphics/2019/investigations/dea-pain-pill-database/#download-resources

Other raw data: buyer_list(), county_list(), county_raw_fips(), county_raw(), drug_fips_biz(), drug_list(), pharmacy_raw(), raw_data()

Examples


library(arcos)

laurens <- drug_county_biz(drug="Fentanyl", county = "Laurens", state = "GA",
                         buyer_bus_act = "CHAIN PHARMACY", key="WaPo")

head(laurens)


wpinvestigative/arcos documentation built on July 19, 2023, 6:19 a.m.