Skip to content

Commit

Permalink
geometry fix for PUMAs
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerke committed Sep 16, 2022
1 parent 4e8bbd3 commit 78f29ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Package: tidycensus
Type: Package
Title: Load US Census Boundary and Attribute Data as 'tidyverse' and 'sf'-Ready Data Frames
Version: 1.2.2.9000
Version: 1.2.3
Authors@R: c(
person(given = "Kyle", family = "Walker", email="kyle@walker-data.com", role=c("aut", "cre")),
person(given = "Matt", family = "Herman", email = "mfherman@gmail.com", role = "aut"),
person(given = "Kris", family = "Eberwein", email = "eberwein@knights.ucf.edu", role = "ctb"))
Date: 2022-09-01
Date: 2022-09-16
URL: https://walker-data.com/tidycensus/
BugReports: https://github.com/walkerke/tidycensus/issues
Description: An integrated R interface to several United States Census Bureau
Expand Down
9 changes: 8 additions & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,14 @@ use_tigris <- function(geography, year, cb = TRUE, resolution = "500k",
} else if (geography == "public use microdata area") {

# Right now, PUMAs are not defined for 2020 and are not in the CB file
if (year == 2020) cb <- FALSE
# Use the 2019 CB pumas for 2020 and 2021 as they align with the boundaries
# used; 2022 should switch to the new 2020 PUMA boundaries (which aren't
# yet available)
if (year %in% 2020:2021) {
if (cb) {
year <- 2019
}
}

state_ids <- c("AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA",
"HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA",
Expand Down

0 comments on commit 78f29ba

Please sign in to comment.