Skip to contents

The population on 1 July by single year of age (0 to 100+) and sex, medium variant of the World Population Prospects 2024, in thousands. The estimates (1950 to 2023) and the projections (2024 to 2100) are two CSV files of about 65 MB each, downloaded once into the user cache folder of geodata; only those needed for years are downloaded.

Usage

gdt_wpp_single_age(countries = NULL, years = NULL)

Source

United Nations, World Population Prospects 2024 (https://population.un.org/wpp/), CC BY 3.0 IGO

Arguments

countries

ISO3 codes of the countries (NULL for all countries and regions)

years

Years (NULL for all years)

Value

A tibble with the columns of the UN file (ISO3_code, Location, Time, AgeGrp, AgeGrpStart, PopMale, PopFemale, PopTotal…)

Examples

if (FALSE) { # interactive()
# Not run: downloads 62 MB the first time

gdt_wpp_single_age("CHE", 2023)
}