Learn R Programming

contactdata (version 1.0.0)

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

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

Arguments

countries

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

References

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

Examples

Run this code
age_df_countries(c("Austria", "Belgium"))

Run the code above in your browser using DataLab