read_stmf_files: Read STMF data from files downloaded from HMD

View source: R/STMF.R

read_stmf_filesR Documentation

Read STMF data from files downloaded from HMD

Description

read_stmf_files reads weekly mortality data from a file downloaded from the Short-term Mortality Fluctuations (STMF) series available in the Human Mortality Database (HMD) https://www.mortality.org/Data/STMF), and constructs a vital object suitable for use in other functions.

Usage

read_stmf_files(file)

Arguments

file

Name of a file containing data downloaded from the HMD.

Value

read_stmf_files returns a vital object combining the downloaded data.

Author(s)

Rob J Hyndman

Examples

## Not run: 
# File downloaded from the [Human Mortality Database STMF series]
(https://www.mortality.org/Data/STMF)
mortality <- read_stmf_files("AUSstmfout.csv")

## End(Not run)

vital documentation built on Aug. 21, 2025, 5:34 p.m.