R/locations.R
pharm_latlon.Rd
Get latitude and longitude data for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)
pharm_latlon(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
# \donttest{
library(arcos)
mingo_wv <- pharm_latlon(county = "Mingo", state="WV", key="WaPo")
head(mingo_wv)
#> BUYER_DEA_NO BUYER_STATE BUYER_COUNTY lat lon
#> 1 FG0153863 WV MINGO 37.6114 -81.8634
#> 2 FR0261684 WV MINGO 37.6114 -81.8634
#> 3 AA8151728 WV MINGO 37.6026 -81.8702
#> 4 BR0780521 WV MINGO 37.6125 -81.8713
#> 5 BM2933263 WV MINGO 37.6219 -82.1631
#> 6 AM2373051 WV MINGO 37.6234 -82.1676
# }