powered by
Reads data from the HMD and HFD into R. The function uses the readHMDweb() and the readHFDweb() functions of the HMDHFDplus package.
GetData(country, user, pw_HMD, pw_HFD)
A list object with four elements:
Country
Life table for female population for all years available in the HMD
Life table for male population for all years available in the HMD
Conditional fertility rates for all years available in the HFD
Code of the selected country. The code must be one of the country codes of HMD and HFD.
email address of the user, used at registration with the HMD and HFD. It is assumed that the same email address is used for both HMD and HFD.
Password to access HMD, provided at registration.
Password to access HFD, provided at registration
if (FALSE) { data_raw <- GetData(country="USA",user,pw_HMD,pw_HFD) }
Run the code above in your browser using DataLab