R/summarized.R
total_manufacturers_state.Rd
Get total pills for each manufacturer in a state
total_manufacturers_state(state = "WV", key = "WaPo")
Filter the data to county within this state (e.g. 'WV')
Key needed to make query successful
# \donttest{
library(arcos)
wv <- total_manufacturers_state(state="WV", key="WaPo")
head(wv)
#> buyer_state buyer_county combined_labeler_name total_dosage_unit
#> 1 WV KANAWHA SpecGx LLC 43066900
#> 2 WV MINGO Actavis Pharma, Inc. 29548720
#> 3 WV LOGAN Actavis Pharma, Inc. 29535700
#> 4 WV CABELL Actavis Pharma, Inc. 27699000
#> 5 WV CABELL SpecGx LLC 25318400
#> 6 WV KANAWHA Actavis Pharma, Inc. 24388545
#> total_records
#> 1 90299
#> 2 21064
#> 3 26805
#> 4 48232
#> 5 46939
#> 6 50458
# }