From 45f84bf5a59ab13fa13c51c2c26390dcdd50bb15 Mon Sep 17 00:00:00 2001 From: Kyle Walker Date: Sun, 13 Oct 2024 08:14:22 -0500 Subject: [PATCH] fix population estimates bug for national characteristics --- DESCRIPTION | 4 ++-- R/estimates.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 89b8e5f..1490380 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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.6.6 +Version: 1.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: 2024-09-20 +Date: 2024-10-13 URL: https://walker-data.com/tidycensus/ BugReports: https://github.com/walkerke/tidycensus/issues Description: An integrated R interface to several United States Census Bureau diff --git a/R/estimates.R b/R/estimates.R index 5b0f493..78a9f75 100644 --- a/R/estimates.R +++ b/R/estimates.R @@ -166,7 +166,7 @@ get_estimates <- function(geography = c("us", "region", "division", "state", "co county_raw <- suppressMessages(readr::read_csv(sprintf("https://www2.census.gov/programs-surveys/popest/datasets/2020-%s/counties/asrh/cc-est%s-alldata-%s.csv", vintage, vintage, state))) } else { - county_raw <- suppressMessages(readr::read_csv(sprintf("https://www2.census.gov/programs-surveys/popest/datasets/2020-%s/counties/asrh/cc-est%s-all.csv", vintage, vintage))) + county_raw <- suppressMessages(readr::read_csv(sprintf("https://www2.census.gov/programs-surveys/popest/datasets/2020-%s/counties/asrh/cc-est%s-alldata.csv", vintage, vintage))) }