Function to read data sets from the Human Mortality Database

Share:

Description

This function allows users to read any data set from the Human Mortality Database (HMD).

Usage

1
read.hmd(country, sex, file = "Mx_1x1.txt", username, password, yname)

Arguments

country

Directory abbreviation from the HMD. For instance, Australia = "AUS".

sex

Possible options are "Male", "Female", "Total".

file

Directory abbreviation from the HMD. For instance, mortality rate = "Mx_1x1.txt".

username

Authenticate username.

password

Authenticate password.

yname

Type of data.

Details

In order to read the data sets, users are required to create their account via the HMD website (http://www.mortality.org/), and obtain a valid username and password.

Value

An object of class fts.

Author(s)

Han Lin Shang and Rob J Hyndman

See Also

hmdstatistic, hmdcountry