Download American Community Survey population data from the U.S. Census Bureau.
Usage
dcf_load_census(
year = 2021,
out_dir = NULL,
state_only = FALSE,
overwrite = FALSE,
verbose = TRUE
)
Value
A data.frame
including GEOID
and region_name
for states and counties, along with their population, in total and within
age brackets.
Examples
if (file.exists("../../resources/census_population_2021.csv.xz")) {
dcf_load_census(2021, "../../resources")[1:10, ]
}