Skip to contents

Returns information about the data available in the Human Mortality Database (HMD), including the range of years covered by the life tables for each country or region.

Usage

availableHMD(link = "https://www.mortality.org/Data/DataAvailability")

Arguments

URL to the HMD available data. Default: "https://www.mortality.org/Data/DataAvailability"

Value

A data frame with one row per country or region, or NULL when the website cannot be reached or the response carries no table.

Details

The function scrapes the availability table published on the HMD site, so it needs no account. It is a thin companion to ReadHMD, useful for checking what exists before a download; every failure (no connection, a non-200 status, a body that is not a table) is reported with a message() and returns NULL rather than raising an error.

See also

Author

Marius D. Pascariu

Examples

if (FALSE) { # \dontrun{
availableHMD()
} # }