age_df_countries {contactdata} | R 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"))
[Package contactdata version 1.0.0 Index]