get ACS summaryfile specified tables for entire USA, all blockgroups or all tracts
Source:R/get.acs.all.R
get.acs.all.Rd
Uses Census Bureau new format files that offer the full USA in 1 file per table, via FTP or https. Does not get Puerto Rico (PR) as coded. Note API provides better list of variable names, in order as found on summary files, than documentation does.
Usage
get.acs.all(
tables = "B01001",
end.year = 2020,
dataset = "5",
sumlevel = 150,
output.path = file.path("~", "acsoutput")
)
Arguments
- tables
'ejscreen' or else one or more table codes like 'b01001' or c("B01001", "B03002")
- end.year
2020 or another available year
- dataset
default is 5, for 5-year summary file data like 2016-2020 ACS
- sumlevel
default is 150 for blockgroups. 140 is tracts.
- output.path
folder / path where to save the downloaded files