Skip to content

Commit

Permalink
fix #514
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerke committed Apr 22, 2023
1 parent 39ffbb3 commit 9e76bf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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: 2023-04-06
Date: 2023-04-22
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
12 changes: 2 additions & 10 deletions R/acs.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,9 @@ get_acs <- function(geography, variables = NULL, table = NULL, cache_table = FAL
call. = FALSE)
}

# Handle new definition of MSAs for 2021 and later (5-year ACS only)
# CBSA alias (fixes #514 by reverting back)
if (geography == "cbsa") {
if (year > 2020 && survey == "acs5") {
geography <- "metropolitan/micropolitan statistical area"
} else {
geography <- "metropolitan statistical area/micropolitan statistical area"
}
}

if (geography == "metropolitan statistical area/micropolitan statistical area" && year >= 2021 && survey == "acs5") {
geography <- "metropolitan/micropolitan statistical area"
geography <- "metropolitan statistical area/micropolitan statistical area"
}

# Other aliases
Expand Down

0 comments on commit 9e76bf4

Please sign in to comment.