Public-Environmental-Data-Partners/EJAM
View on GitHubFIPS missing/problems (mostly in Connecticut)
Open
#19 opened on Aug 2, 2025
BUGPRIORITY MEDIUMdatasets-relatedhelp wantedmaps-relatedrank:B-high-value-high-cost
Repository metrics
- Stars
- (2 stars)
- PR merge metrics
- (PR metrics pending)
Description
Missing some 19 bgfips in blockgroupstats (almost 1% of CT) and some County FIPS in censusplaces table (1% of USA) - Some FIPS for the State of CT in particular had problems or were missing in some tables:
dataload_dynamic("bgid2fips")
bgfips_via_blockgroupstats = blockgroupstats[ , unique( bgfips )]
bgfips_via_bgid2fips = bgid2fips[, unique(substr(bgfips, 1, 12))]
length(bgfips_via_bgid2fips)
length(bgfips_via_blockgroupstats)
fips2state_abbrev(setdiff(bgfips_via_bgid2fips,bgfips_via_blockgroupstats)) # all are in CT
And possibly related issues in this dataset mostly in CT but also in AK and a few others:
table(censusplaces$ST[is.na( fips_lead_zero( censusplaces$countyfips) )])
# in countyfips column, but 370 (1% of them) are NA values -- 85% of the problems are in CT
table(is.na(censusplaces$countyfips))
table(censusplaces$ST[ is.na(censusplaces$countyfips) ])