load.kt.data: load.kt.data

Description Usage Arguments Value

View source: R/library.R

Description

load the period and cohort mortality rates from the kannisto-thatcher database based on the years, cohorts, and countries given in the passed-in file TODO - the load.hmd files are not yet documented

Usage

1
load.kt.data(kt.desc.file, kt.dir, kt.format = "1")

Arguments

kt.desc.file

location of .csv file which describes which country-years/cohorts to use

kt.dir

the directory which has the data files for the kannisto-thatcher database

kt.format

which of the files to use (for period data) defaults to "1"; no foreseeable need to change this

Value

an object containing (i) a two-dimensional list of data frames, indexed by (country, sex); (ii) country.years, a data frame with the countries and years in the object


dfeehan/mortfit documentation built on Nov. 14, 2020, 9:04 p.m.