Repository navigation
Add Geocorr 2000 for same-year 2000 crosswalks - #24
Open
wcurrangroome wants to merge 1 commit into
Open
wcurrangroome wants to merge 1 commit into
wcurrangroome wants to merge 1 commit into
Conversation
Same-year crosswalks for years 2000-2009 now come from Geocorr 2000, which uses 2000 Census geography. For example, 2000 tracts to 2000 PUMAs, which NHGIS does not provide. Years before 2000 remain an error. - Geography codes: county, tract, block group, block, place, zcta, puma (the 2000 5% sample PUMA, puma5) and msacmsa (1999 MSAs and CMSAs). Requests for puma1 stop with a message pointing to puma5. - Geocorr 2000 leaves the MSA/CMSA code blank for New England, where 1999 metro areas were built from towns. Those rows are dropped with a warning. - Shared Geocorr download code now finds the CSV link in either the page text or the page's links, stops when Geocorr returns no rows, and uses each version's limit on states per block request. - Tract GEOIDs are built from Geocorr 2000's county code and its tract codes, which are written like 1234.56. - get_available_crosswalks() lists the 56 new combinations. Closes #22 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
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.
Closes #22. Stacked on #23 (household weights); review that one first.
What this changes
uaucsfield that Geocorr 2000 requires.puma(meaningpuma5, the 2000 5% sample PUMA that 2005–2011 ACS microdata also use) andmsacmsa(1999 MSAs and CMSAs). Asking forpuma1stops with a message pointing topuma5, because Geocorr 2000 returns no rows for it.1234.56.get_available_crosswalks()lists the 56 new combinations.Decisions
"msacmsa"as the name. 1999 PMSAs are not added."puma"meanspuma5.Testing
test-get_geocorr_2000_crosswalk.R: all tests pass, including the 4 live ones. Run them withNOT_CRAN=true CROSSWALK_RUN_SLOW_TESTS=true.test-get_geocorr_2018_crosswalk.R: 0 failed. One test that expected year 2000 to fail now uses 1990.devtools::check()without tests and vignettes: 0 errors, 0 warnings.🤖 Generated with Claude Code