Learn R Programming

MortalityLaws (version 1.4.0)

ReadHMD.core: Function to Download Data for a one Country

Description

Function to Download Data for a one Country

Usage

ReadHMD.core(what, country, interval, username, password)

Arguments

what

What type of data are you looking for? There are available: birth records "births", death counts "Dx", deaths by Lexis triangles "lexis", population size "population", exposure-to-risk "Ex", death-rates "mx", life tables for females "LT_f", life tables for males "LT_m", life tables both sexes combined "LT_t", life expectancy at birth "e0", cohort death-rates "mxc" and cohort exposures "Exc".

country

HMD country code for the selected country. Character.

interval

HMD data format: (age interval x year interval). Interval options: 1x1, 1x5, 1x10, 5x1, 5x5, 5x10.

username

Your HMD username. If you don't have one you can sign up for free on Human Mortality Database website.

password

Your HMD password.