A dataset containing demographic information by county for all counties in the United States from the 2020 Decennial Census. This dataset includes population counts by race and ethnicity for each of the 3,143 counties and county-equivalents in the United States, including Washington D.C. and territories.
census
A data frame with 8 variables and counties as rows:
County name and state (e.g., "Los Angeles County, California") (character)
Total population count (integer)
Population identifying as White alone (integer)
Population identifying as Black or African American alone (integer)
Population identifying as American Indian and Alaska Native alone (integer)
Population identifying as Asian alone (integer)
Population identifying as Native Hawaiian and Other Pacific Islander alone (integer)
Population identifying as Hispanic or Latino of any race (integer)
U.S. Census Bureau, 2020 Decennial Census, Summary File 1 Retrieved via the tidycensus R package from the U.S. Census Bureau API.
The data comes from the 2020 Decennial Census Summary File 1 (SF1) tables:
P1_001N: Total population
P1_003N: White alone
P1_004N: Black or African American alone
P1_005N: American Indian and Alaska Native alone
P1_006N: Asian alone
P1_007N: Native Hawaiian and Other Pacific Islander alone
P2_002N: Hispanic or Latino (of any race)
Note that Hispanic/Latino is an ethnicity category that can apply to individuals of any race, so these counts may overlap with the race-specific categories.
The dataset includes all counties in the 50 states, Washington D.C., and U.S. territories (Puerto Rico, U.S. Virgin Islands, American Samoa, Guam, and Northern Mariana Islands).