Read data directly from HFD and construct a vital
object for use in other functions
Source: R/hfd.R
read_hfd.Rd
read_hfd
reads single-year and single-age data from the Human Fertility Database (HFD
https://www.humanfertility.org) and constructs a vital
object suitable
for use in other functions. This function uses HMDHFDplus::readHFDweb()
to download the required data. It is designed to handle age-specific fertility rates.
It may be extended to handle other types of data in the future.
Details
In order to read the data, users are required to create an account with the HFD website (https://www.humanfertility.org), and obtain a valid username and password.