This function allows users to read any data set from the Human Mortality Database (HMD).
read.hmd(country, sex, file = "Mx_1x1.txt", username, password, yname)
Directory abbreviation from the HMD. For instance, Australia = "AUS".
Possible options are "Male", "Female", "Total".
Directory abbreviation from the HMD. For instance, mortality rate = "Mx_1x1.txt".
Authenticate username.
Authenticate password.
Type of data.
An object of class fts
.
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.