State level data on population by race.
Format
A data frame with 2820 rows and 4 variables.
- state
State as 2 letter abbreviation.
- state_name
State name.
- race
race cohort for population.
- hispanic
indicates whether population is Hispanic or Latino
- population
Population of race cohort.
- state_total_population
total estimated state population in 2019
Examples
library(dplyr)
# List race population for each state with percent of total
pop_race_2019 %>%
group_by(state_name, race, hispanic) %>%
mutate(percent = population / state_total_population * 100) %>%
select(state_name, race, hispanic, population, percent)
#> # A tibble: 408 × 5
#> # Groups: state_name, race, hispanic [408]
#> state_name race hispanic population percent
#> <chr> <chr> <chr> <int> <dbl>
#> 1 Alabama American Indian or Alaska Native Hispanic or L… 7823 0.160
#> 2 Alabama American Indian or Alaska Native Not Hispanic … 30433 0.621
#> 3 Alabama Asian or Pacific Islander Hispanic or L… 4833 0.0986
#> 4 Alabama Asian or Pacific Islander Not Hispanic … 80310 1.64
#> 5 Alabama Black or African American Hispanic or L… 17693 0.361
#> 6 Alabama Black or African American Not Hispanic … 1324613 27.0
#> 7 Alabama White Hispanic or L… 192929 3.93
#> 8 Alabama White Not Hispanic … 3244551 66.2
#> 9 Alaska American Indian or Alaska Native Hispanic or L… 7912 1.08
#> 10 Alaska American Indian or Alaska Native Not Hispanic … 120349 16.5
#> # ℹ 398 more rows
pop_race_2019 %>%
select(state_name, state_total_population) %>%
distinct() %>%
arrange(desc(state_total_population))
#> state_name state_total_population
#> 1 California 39512223
#> 2 Texas 28995881
#> 3 Florida 21477737
#> 4 Pennsylvania 12801989
#> 5 Illinois 12671821
#> 6 Ohio 11689100
#> 7 Georgia 10617423
#> 8 Michigan 9986857
#> 9 New Jersey 8882190
#> 10 Washington 7614893
#> 11 Arizona 7278717
#> 12 Maine 6892503
#> 13 Tennessee 6829174
#> 14 Indiana 6732219
#> 15 Maryland 6045680
#> 16 West Virginia 5822434
#> 17 Wisconsin 5822434
#> 18 Colorado 5758736
#> 19 Minnesota 5639632
#> 20 Missouri 5639632
#> 21 South Carolina 5148714
#> 22 Alabama 4903185
#> 23 Louisiana 4648794
#> 24 Massachusetts 4648794
#> 25 Kentucky 4467673
#> 26 Oregon 4217737
#> 27 Oklahoma 3956971
#> 28 Connecticut 3565287
#> 29 District of Columbia 3565287
#> 30 Utah 3205958
#> 31 Virginia 3205958
#> 32 Arkansas 3017804
#> 33 Mississippi 2976149
#> 34 Kansas 2913314
#> 35 Nebraska 1934408
#> 36 New Hampshire 1934408
#> 37 Idaho 1787065
#> 38 Hawaii 1415872
#> 39 Iowa 1415872
#> 40 Montana 1068778
#> 41 North Carolina 1068778
#> 42 North Dakota 1068778
#> 43 Rhode Island 1059361
#> 44 Delaware 973764
#> 45 South Dakota 884659
#> 46 Nevada 762062
#> 47 New Mexico 762062
#> 48 New York 762062
#> 49 Alaska 731545
#> 50 District of Columbia 705749
#> 51 Vermont 623989
#> 52 Wyoming 578759