Download American Community Survey 5-yr data files
Source:R/download.datafiles.R
download.datafiles.Rd
Attempts to download data files (estimates and margins of error) for specified states and tables, from the US Census Bureau's FTP site for American Community Survey (ACS) 5-year summary file data.
Usage
download.datafiles(
tables,
end.year = acsdefaultendyearhere_func(),
mystates = 52,
folder = getwd(),
testing = FALSE,
attempts = 5,
silent = FALSE
)
Arguments
- tables
Required character vector of table numbers, such as c("B01001", "B03002")
- end.year
Character element, optional, like "2012". Defines last of five years of summary file dataset.
- mystates
Character vector, now optional - Default is 50 states + DC + PR here, but otherwise relies on
clean.mystates()
- folder
Default is getwd()
- testing
Default to FALSE. If TRUE, provides info on progress of download.
- attempts
Default is 5, specifies how many tries (maximum) for unzipping before trying to redownload and then give up.
- silent
Optional, default is FALSE. Whether progress info should be sent to standard output (like the screen).
See also
proxistat::get.distances()
which allows you to get distances between all points.