fds (version 1.8)

read.hmd: Function to read data sets from the Human Mortality Database

Description

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

Usage

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.

Value

An object of class fts.

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.

See Also

hmdstatistic, hmdcountry