Repository navigation
In version 2.0.0:
get_estimates()now defaults to Vintage 2025 and supports Puerto Rico: municipio population and age / sex characteristics are available withgeography = "county", state = "PR", and Puerto Rico metro areas are included in CBSA and CSA population estimates (#581).get_estimates()now supports the Census Bureau's intercensal estimates withproduct = "intercensal": usevintage = 2020for 2010-2020 andvintage = 2010for 2000-2010. Population totals are available for states, counties, and places, and characteristics by age, sex, race, and Hispanic origin for counties (#629). Population characteristics requests also now supportgeometry = TRUEand multiple states for counties.- New
drop_emptyargument inget_acs(),get_decennial(), andget_estimates()drops rows with empty geometries (typically water-only areas not in the cartographic boundary files) whengeometry = TRUE(#650). These functions also now have an explicitcbargument, which defaults toTRUE(cartographic boundary files); usecb = FALSEfor TIGER/Line files (#604). get_estimates()now supports housing unit estimates for 2020 and later withproduct = "housing"(Vintage 2021 and later) for the US, regions, states, and counties. The Census Bureau publishes these only as Excel tables, so the readxl package is required.get_flows()now defaults toyear = 2020, the most recent ACS Migration Flows release with county-to-county flows, and supports the 2017-2021 and 2018-2022 releases, which provide flows between counties and states or world regions (inflows only, with no county subdivision, MSA, or geometry support).get_acs()andget_decennial()now support metropolitan divisions (geography = "metropolitan division") and tribal census tracts (geography = "tribal census tract"), returned for the entire US (#519, #621).- New
suffixargument inget_acs()sets the estimate and margin of error suffixes foroutput = "wide", e.g.suffix = c("_est", "_moe"); the default remainsc("E", "M")(#600). - Cleaned variable labels:
get_acs()andget_decennial()have a newlabelsargument.labels = TRUEnames variables from their labels instead of their IDs (e.g.total_male_under_5_years), in tidy or wide output;labels = "concept"adds the concept to those names; andlabels = "attributes"keeps the IDs and attaches readable labels (e.g. "Total > Male > Under 5 years") to the columns of wide output.load_variables(clean_labels = TRUE)returns the same cleaned labels. load_variables()now includes each table's universe where the Census API publishes it (ACS detailed tables and the 2020 decennial files) (#596).- Requests to the Census API and Census Bureau file downloads now use {httr2} in place of {httr}. Rate limiting and temporary server errors are retried automatically, and connection failures and API outages give clear error messages.
- Various bug fixes and performance improvements (#649, #590, #652, #557, #564, #582, #526, #651, #653, #654, #485).