Add 2024 ACS 1-year PUMS data dictionary + enable 2024 recoding#635
Closed
ashleyasmus wants to merge 3 commits into
Closed
Add 2024 ACS 1-year PUMS data dictionary + enable 2024 recoding#635ashleyasmus wants to merge 3 commits into
ashleyasmus wants to merge 3 commits into
Conversation
…acant` functions to include 2024 for "acs1" survey.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the 2024 ACS 1-year PUMS data dictionary and updates
tidycensus::pums_variablesso that 2024 variables can be read and used for recoding. It also extends the internalrecode_yearslogic to include 2024 foracs1only, keeping existing behavior unchanged foracs5until the 5-year dictionary is available.Changes
PUMS_Data_Dictionary_2024.csvtodata-raw/pums_variablesdataset to includesurvey = "acs1", year = "2024"recode_yearshandling inR/load_data.Rto support 2017–2024 foracs1(leavingacs5at 2017–2023)Why this is needed
Currently,
load_pums()/get_pums(recode = TRUE)prints:when requesting 2024 1-year PUMS. Adding the 2024 dictionary and extending
acs1recoding support resolves this for 2024.Notes
acs5support, since the 5-year PUMS dictionary is not yet posted.recode_yearsby deriving supported years frompums_variables.Testing
pums_variablesincludesacs12024 entries.get_pums(..., year = 2024, survey = "acs1", recode = TRUE)no longer prints the unsupported recoding message and returns recoded values.Related
pums_variablesand enable 2024 recoding #633