View source: R/which.seqfiles.R
which.seqfiles | R Documentation |
The US Census Bureau provides 5-year summary file data from the American Community Survey in sequence files on their FTP site.
This function reports which sequence files contain the specified tables. Used by get.acs()
which.seqfiles(tables, lookup.acs, end.year = acsdefaultendyearhere_func())
tables |
character vector, required. Defines which ACS table(s) to check, such as 'B01001' |
lookup.acs |
data.frame, optional (if not provided then it is downloaded from Census). Specifies what variables are in which tables and which tables are in which sequence files on the FTP site. |
end.year |
Character element, optional. Defines end year for 5-year dataset. Valid years are limited. Ignored if lookup.acs is specified, however. If they imply different years, the function stops with an error message. |
Returns a vector of one or more numbers stored as characters, each defining one sequence file, such as "0001".
get.acs()
and acs::acs.lookup()
from the acs package, which does something related but is more flexible & robust. Also see get.acs()
which uses this.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.