View source: R/download.datafiles.R
download.datafiles | R Documentation |
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.
download.datafiles(
tables,
end.year = acsdefaultendyearhere_func(),
mystates = 52,
folder = getwd(),
testing = FALSE,
attempts = 5,
silent = FALSE
)
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 |
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). |
Effect is to download and save locally a number of data files.
proxistat::get.distances()
which allows you to get distances between all points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.