powered by
Get DEA designated addresses for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)
buyer_addresses(county = "Mingo", state = "WV", key = "WaPo")
Filter the data to only this county (e.g. 'Mingo')
Filter the data to county within this state (e.g. 'WV')
Key needed to make query successful
https://www.washingtonpost.com/graphics/2019/investigations/dea-pain-pill-database/#download-resources
Other geocoded data: county_population(), not_pharmacies(), pharm_cbsa(), pharm_counties(), pharm_latlon(), pharm_tracts(), reporter_addresses(), state_population()
county_population()
not_pharmacies()
pharm_cbsa()
pharm_counties()
pharm_latlon()
pharm_tracts()
reporter_addresses()
state_population()
# NOT RUN { library(arcos) mingo_wv <- buyer_addresses(county = "Mingo", state="WV", key="WaPo") head(mingo_wv) # }
Run the code above in your browser using DataLab