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

Description Usage Arguments See Also Examples

View source: R/raw.R

Description

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

Usage

1
2
3
4
5
6
drug_fips_biz(
  drug = "Fentanyl",
  fips = "01001",
  buyer_bus_act = "Chain Retail",
  key = "WaPo"
)

Arguments

drug

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

fips

Filter the data to only this county (e.g. ‘01001’ for Autauga, Alabama)

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_county_biz(), drug_list(), pharmacy_raw(), raw_data()

Examples

1
2
3
4
5
library(arcos)

autauga_al <- drug_fips_biz(drug="Fentanyl", fips="01001", buyer_bus_act="Chain Retail", key="WaPo")

head(autauga_al)

arcos documentation built on Feb. 19, 2021, 1:06 a.m.