pop_age_2019: Population Age 2019 Data.

pop_age_2019R Documentation

Population Age 2019 Data.

Description

State level data on population by age.

Usage

pop_age_2019

Format

A data frame with 2820 rows and 4 variables.

state

State as 2 letter abbreviation.

state_name

State name.

age

Age cohort for population.

population

Population of age cohort.

state_total_population

total estimated state population in 2019

Source

Centers for Disease Control and Prevention

Examples

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))

usdata documentation built on June 22, 2024, 9:57 a.m.