get_country_codes: Get the available countries within the package

View source: R/get_country_codes.R

get_country_codesR Documentation

Get the available countries within the package

Description

This function shows the available countries that can be used in the multipopulation mortality model. Further, their user codes are given as well as the available year range for each country. Information is substracted from the data sources HMD and Eurostat.

Usage

get_country_codes(data_magec = NULL, data_mager = NULL, data_pjan = NULL)

Arguments

data_magec

The dataset of the period death counts on Eurostat. If NULL, this dataset is downloaded from Eurostat.

data_mager

The dataset of the cohort death counts on Eurostat. If NULL, this dataset is downloaded from Eurostat.

data_pjan

The dataset of the population numbers at 1 January of each year on Eurostat. If NULL, this dataset is downloaded from Eurostat.

Details

This function can be used to find your desired country set and year range to construct the multipopulation mortality model.

A special case: Germany. Here before 1990 (German unification), only data from West-Germany is considered.

Value

A dataframe containing the available country names, the corresponding HMD, Eurostat and user country labels as well as the avaible year range for each country.

Examples

df_country <- get_country_codes()


RobbenJ/MultiMoMo documentation built on June 28, 2022, 9:29 p.m.