pop_race_2019 | R Documentation |
State level data on population by race.
pop_race_2019
A data frame with 2820 rows and 4 variables.
State as 2 letter abbreviation.
State name.
race cohort for population.
indicates whether population is Hispanic or Latino
Population of race cohort.
total estimated state population in 2019
Centers for Disease Control and Prevention
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)
pop_race_2019 |>
select(state_name, state_total_population) |>
distinct() |>
arrange(desc(state_total_population))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.