Learn R Programming

HMDHFDplus (version 2.0.8)

Read Human Mortality Database and Human Fertility Database Data from the Web

Description

Utilities for reading data from the Human Mortality Database (), Human Fertility Database (), and similar databases from the web or locally into an R session as data.frame objects. These are the two most widely used sources of demographic data to study basic demographic change, trends, and develop new demographic methods. Other supported databases at this time include the Human Fertility Collection (), The Japanese Mortality Database (), and the Canadian Human Mortality Database (). Arguments and data are standardized.

Copy Link

Version

Install

install.packages('HMDHFDplus')

Monthly Downloads

10,536

Version

2.0.8

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Riffe

Last Published

October 3rd, 2025

Functions in HMDHFDplus (2.0.8)

readHMDweb

readHMDweb a basic HMD data grabber.
readJMDweb

read data from the Japan Mortality Database into R
readHFD

readHFD() reads a standard HFD .txt table as a data.frame
readCHMDweb

read data from the Canadian Human Mortality Database into R
userInput

userInput let the user type in a character string
age2int

age2int() convert the Age column from standard HMD or HFD tables to integer
getCHMDprovinces

get a named vector of CHMD province codes
getHFDdate

internal function for grabbing the date of last update for a given HFD country
HMDparse

internal function for modifying freshly read HMD data in its standard form
getHFDitemavail

List the available data item names for a given HFD country.
HFCparse

HFCparse internal function for modifying freshly read HCD data in its standard form
getHFCcountries

getHFCcountries a function to grab all present country codes used in the Human Fertility Collection
HFDparse

internal function for modifying freshly read HFD data in its standard form
getHMDcountries

internal function for grabbing the HMD country short codes.
getHFDcountries

internal function for grabbing the HFD country short codes.
readHMD

readHMD() reads a standard HMD .txt table as a data.frame
getHMDitemavail

internal function for grabbing the available data item names for a given country.
readHFDweb

read an HFD data file directly from the web as an R data.frame
getJMDprefectures

get a named vector of JMD prefecture codes