pop_age_2019 | R Documentation |
State level data on population by age.
pop_age_2019
A data frame with 2820 rows and 4 variables.
State as 2 letter abbreviation.
State name.
Age cohort for population.
Population of age cohort.
total estimated state population in 2019
Centers for Disease Control and Prevention
library(dplyr) # List age population for each state with percent of total pop_age_2019 %>% group_by(state_name,age) %>% mutate(percent=population/state_total_population*100) %>% select(state_name,age,population,percent) pop_age_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.