pharm_cbsa: Get the core-based statistical area GEOID for each pharmacy...

View source: R/locations.R

pharm_cbsaR Documentation

Get the core-based statistical area GEOID for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)

Description

Get the core-based statistical area GEOID for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)

Usage

pharm_cbsa(geoid = "26580", county = "Mingo", state = "WV", key = "WaPo")

Arguments

geoid

Filter the data to only this cbsa GEOD (e.g. '26580')

county

If geoid not included, filter the data to only this county (e.g. 'Mingo')

state

If geoid not included, 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 geocoded data: buyer_addresses(), county_population(), not_pharmacies(), pharm_counties(), pharm_latlon(), pharm_tracts(), reporter_addresses(), state_population()

Examples


library(arcos)

mingo_wv <- pharm_cbsa(geoid="26580", key="WaPo")

head(mingo_wv)


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