Learn R Programming

HMDHFDplus (version 2.0.6)

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

2,000

Version

2.0.6

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Riffe

Last Published

January 21st, 2025

Functions in HMDHFDplus (2.0.6)

readHFDweb

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

read data from the Japan Mortality Database into R
readHMD

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

get a named vector of JMD prefecture codes
readHFD

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

userInput let the user type in a character string
getHFCcountries

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

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

get a named vector of CHMD province codes
getHMDcountries

internal function for grabbing the HMD country short codes.
HFCparse

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

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

internal function for grabbing the HFD country short codes.
getHFDitemavail

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

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

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

readHMDweb a basic HMD data grabber.
readCHMDweb

read data from the Canadian Human Mortality Database into R
getHMDitemavail

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