Skip to content

Commit

Permalink
enable PUMAs for 2023 5-year ACS
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerke committed Jan 24, 2025
1 parent 8163ae3 commit 324d5a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/pums.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ get_pums <- function(variables = NULL,
key <- get_census_api_key(key)

# Account for missing PUMAs in 2008-2012 through 2011-2015 ACS samples
if (year %in% c(2012:2015, 2022:2023) && survey == "acs5" && (!is.null(puma) || "PUMA" %in% variables)) {
if (year %in% c(2012:2015, 2022) && survey == "acs5" && (!is.null(puma) || "PUMA" %in% variables)) {
rlang::abort(message = c(
"PUMAs are not available for the 5-year ACS with end-years between 2012 and 2015, and 2022-2023, due to inconsistent PUMA boundary definitions.",
"PUMAs are not available for the 5-year ACS with end-years between 2012 and 2015, and 2022, due to inconsistent PUMA boundary definitions.",
i = "Users can use the `PUMA00`, `PUMA10`, and `PUMA20` variables for year-specific PUMAs in these datasets.",
i = "See https://github.com/walkerke/tidycensus/issues/555 for discussion."
))
Expand Down

0 comments on commit 324d5a9

Please sign in to comment.