View source: R/url.to.find.zipfile.R
url.to.find.zipfile | R Documentation |
Returns URLs of folders on Census Bureau FTP site with zip files based on end year.
url.to.find.zipfile(
mystates,
end.year = acsdefaultendyearhere_func(),
url.prefix
)
mystates |
Character vector of one or more states/DC/PR, as 2-character state abbreviations. Default is all states/DC/PR. |
end.year |
Optional end year for 5-year summary file, as character, but ignored if url.prefix is specified |
url.prefix |
Optional character element that defaults to what is returned by |
See help for download.lookup.acs()
for more details on the URLs used for the data.
The zip files look like this for example: "20135dc0001000.zip"
The 2009-2013 summary file by state-seqfile combo is in folders that look like this:
ftp://ftp.census.gov/acs2013_5yr/summaryfile/2009-2013_ACSSF_By_State_By_Sequence_Table_Subset/DistrictOfColumbia/Tracts_Block_Groups_Only
Returns character vector that is URL(s) such as "ftp://ftp.census.gov/acs2012_5yr/summaryfile"
The 2008-2012 summary file by state-seqfile combo is in folders that look like this:
http://www2.census.gov/acs2012_5yr/summaryfile/2008-2012_ACSSF_By_State_By_Sequence_Table_Subset/Alabama/Tracts_Block_Groups_Only
The 2007-2011 summary file by state-seqfile combo is in folders that look like this:
ftp://ftp.census.gov/acs2011_5yr/summaryfile/2007-2011_ACSSF_By_State_By_Sequence_Table_Subset/DistrictOfColumbia/Tracts_Block_Groups_Only/
URL must be the ftp site, not the http version.
http version was here
http://www2.census.gov/acs2011_5yr/summaryfile/2007-2011_ACSSF_By_State_By_Sequence_Table_Subset/DistrictOfColumbia/Tracts_Block_Groups_Only/
get.acs()
, url.to.find.zipfile()
, download.geo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.