Skip to content

Commit

Permalink
fix tables for 2020 DHC & DP data
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerke committed May 26, 2023
1 parent a4cc8c9 commit f5b2327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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="[email protected]", role=c("aut", "cre")),
person(given = "Matt", family = "Herman", email = "[email protected]", role = "aut"),
person(given = "Kris", family = "Eberwein", email = "[email protected]", role = "ctb"))
Date: 2023-05-25
Date: 2023-05-26
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
2 changes: 1 addition & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ variables_from_table_decennial <- function(table, year, sumfile, cache_table) {

# Find all variables that match the table

if (year == 2020 && sumfile == "pl") {
if (year == 2020 && sumfile %in% c("pl", "dhc", "dp")) {
vars <- df %>%
filter(grepl(paste0(table, "_[0-9]+"), name)) %>%
pull(name)
Expand Down

0 comments on commit f5b2327

Please sign in to comment.