county_raw: Download raw prescription data for specified county (by state...

View source: R/raw.R

county_rawR Documentation

Download raw prescription data for specified county (by state and county names) into R

Description

Data from from non-contiguous states not yet processed and available. This raw data only includes data from pharmacies and practitioners and the drugs Hydrocodne and Oxycodone.

Usage

county_raw(county = "Mingo", state = "WV", key = "WaPo")

Arguments

county

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

state

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

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

Examples


library(arcos)

mingo_wv <- county_raw(county = "Mingo", state="WV", key="WaPo")

head(mingo_wv)


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