Skip to content

psrccensus‐specific maintenance items

Michael Jensen edited this page Mar 18, 2024 · 1 revision

Each dicennial census is accompanied by Census boundary revisions. Because PUMA is considered a State (rather than County) division, these will need to be updated in psrccensus:::add_county() and psrccensus:::filter2region(). Although Place is also a State division, the function get_psrc_places() handles them spatially.

psrccensus has two internal data files:

  • acs_tbltypes_lookup - helps psrccensus know which of four types (and structure) a given table code will deliver
  • pums_labels_xtra - provides labels for custom variables beyond tidycensus::pums_variables (incl. SOC code levels).

The process to update acs_tbltypes_lookup and recycle pums_labels_xtra is contained in internal_data.R. The process to identify new codes for inclusion in pums_labels_xtra has not yet been scripted (most of these codes will not change; 5-digit SOC is the most likely). Because usethis::use_data() cannot append additional datasets, you must save pums_labels_xtra as a local object with the same name, and overwrite with the updated version.

As prompted by the startup message, tidycensus must be kept current to enable API access to recently released tables or PUMS labels.

re: backyears -- tidycensus doesn't support PUMS labels prior to 2017, but pums_labels_xtra could be expanded if necessary to address that, within reason (at present the package gives a warning, and excludes a couple older vintage variables from being labelled erroneously, otherwise assuming 2017 labels are valid for prior years).

Clone this wiki locally