age_df_countries: Get a data.frame (in long format) of population by age for...

View source: R/age_countries.R

age_df_countriesR Documentation

Get a data.frame (in long format) of population by age for multiple countries

Description

Get a data.frame (in long format) of population by age for multiple countries

Usage

age_df_countries(countries)

Arguments

countries

A character string or a vector of character containing the names of the countries for which to return contact data

Value

A data.frame (in long format) with 3 columns:

  • country: the country name

  • age: the age group

  • population: the number of people in this age group

References

https://www.census.gov/programs-surveys/international-programs/about/idb.html

Examples

age_df_countries(c("Austria", "Belgium"))


Bisaloo/contactdata documentation built on Sept. 14, 2023, 4:57 p.m.