Load ARCOS Prescription Data Prepared by the Washington Post


[Up] [Top]

Documentation for package ‘arcos’ version 1.27

Help Pages

arcos 'arcos' package
buyer_addresses Get DEA designated addresses for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)
buyer_details Get monthly summarized pill totals by county
buyer_list Get list of business types listed in the BUYER_BUS_ACT in the ARCOS database
combined_buyer_annual Get annual total pills for each buyer (pharmacy, etc) in a county
combined_buyer_monthly Get annual total pills for each buyer (pharmacy, etc) in a county
county_list Get dataframe of counties, states, and fips codes that are represented in the ARCOS data
county_population Get annual population for counties between 2006 and 2014
county_raw Download raw prescription data for specified county (by state and county names) into R
county_raw_fips Download raw prescription data for specified county (by county FIPS code) into R
drug_county_biz Download raw prescription data for individual drugs and business type by county into R
drug_fips_biz Download raw prescription data for individual drugs and business type by county FIPS code into R
drug_list Get list of drugs available in the ARCOS database
not_pharmacies Get list of misidentified pharmacies by BUYER_DEA_NOs
pharmacy_raw Download raw prescription data for specified pharmacy (by BUYER_DEA_NO) into R
pharm_cbsa Get the core-based statistical area GEOID for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)
pharm_counties Get county GEOID for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)
pharm_latlon Get latitude and longitude data for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)
pharm_tracts Get census tract GEOID for each pharmacy based on BUYER_DEA_NO (Only includes retail and chain pharmacy designations)
raw_data Raw ARCOS data (Warning 130+ GB file) Warning: May not fit on your memory.. If interested in the raw data, you can download via the link below.
reporter_addresses Get DEA designated addresses for each Reporter based on REPORTER_DEA_NO (Includes Manufacturers and Distributors)
state_population Get annual population for states between 2006 and 2014
summarized_county_annual Get annual summarized pill totals by county
summarized_county_monthly Get monthly summarized pill totals by county
total_distributors_county Get total pills for each distributor in a county
total_distributors_state Get total pills for each distributor in a state
total_manufacturers_county Get total pills for each manufacturer in a county
total_manufacturers_state Get total pills for each manufacturer in a state
total_pharmacies_county Get total pills for each pharmacy in a county
total_pharmacies_state Get total pills for each pharmacy in a state