Skip to contents

Pick a year-specific lookup table of information on American Community Survey (ACS) tables, from the Census Bureau, namely which sequence files on the FTP site contain which tables and which variables.

Usage

get.lookup.acs(end.year = acsdefaultendyearhere_func())

Arguments

end.year

Character, optional, like "2020", which specifies the 2016-2020 dataset. Defines which 5-year summary file to use, based on end-year. Note: Function stops with error if given end.year is not yet added to this package or is too old.

Value

returns a data.frame

See also

get.table.info() and get.field.info().
Also see acs::acs.lookup() which does something similar but is more flexible & robust. Also see download.lookup.acs() to download the file from the Census FTP site. Also see lookup.acs lookup.acs2022 and similar data for other years. Also see get.acs(), get.lookup.file.name(), get.url.prefix.lookup.table() tidycensus::load_variables()

Examples

 names(lookup.acs2022)
#> [1] "Table.ID"  "Line"      "Indent"    "Unique.ID" "Label"     "Title"    
#> [7] "Universe"  "Type"     
 names(lookup.acs)
#> [1] "Table.ID"  "Line"      "Indent"    "Unique.ID" "Label"     "Title"    
#> [7] "Universe"  "Type"