Skip to content

Add 2024 ACS 1-year PUMS data dictionary + enable 2024 recoding#635

Closed
ashleyasmus wants to merge 3 commits into
walkerke:masterfrom
ashleyasmus:pums-2024-dictionary
Closed

Add 2024 ACS 1-year PUMS data dictionary + enable 2024 recoding#635
ashleyasmus wants to merge 3 commits into
walkerke:masterfrom
ashleyasmus:pums-2024-dictionary

Conversation

@ashleyasmus
Copy link
Copy Markdown
Contributor

Summary

This PR adds the 2024 ACS 1-year PUMS data dictionary and updates tidycensus::pums_variables so that 2024 variables can be read and used for recoding. It also extends the internal recode_years logic to include 2024 for acs1 only, keeping existing behavior unchanged for acs5 until the 5-year dictionary is available.

Changes

  • Add PUMS_Data_Dictionary_2024.csv to data-raw/
  • Regenerate packaged pums_variables dataset to include survey = "acs1", year = "2024"
  • Update recode_years handling in R/load_data.R to support 2017–2024 for acs1 (leaving acs5 at 2017–2023)

Why this is needed

Currently, load_pums() / get_pums(recode = TRUE) prints:

“Recoding is currently supported for 2017 - 2023 data. Returning original data only.”

when requesting 2024 1-year PUMS. Adding the 2024 dictionary and extending acs1 recoding support resolves this for 2024.

Notes

  • This PR intentionally does not add 2024 acs5 support, since the 5-year PUMS dictionary is not yet posted.
  • A follow-up PR will remove the need to manually update recode_years by deriving supported years from pums_variables.

Testing

  • Confirmed pums_variables includes acs1 2024 entries.
  • Verified that get_pums(..., year = 2024, survey = "acs1", recode = TRUE) no longer prints the unsupported recoding message and returns recoded values.
library(tidycensus)

x <- get_pums(
  variables = c("AGEP", "SEX"),
  year = 2024,
  survey = "acs1",
  recode = TRUE
)

table(x$SEX, useNA = "ifany")

Related

@walkerke
Copy link
Copy Markdown
Owner

Thank you so much! I merged your other PR, and did some updates on my end to support the new 5-year ACS PUMS for 2024, which supersedes this PR.

@walkerke walkerke closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add 2024 ACS 1-year PUMS data dictionary to pums_variables and enable 2024 recoding

2 participants