Skip to contents

read_ktdb reads old-age mortality data classified by sex, age, year of birth, and calendar year for more than 30 countries. The series is available in Kannisto-Thatcher (K-T) database (https://www.demogr.mpg.de/cgi-bin/databases/ktdb/datamap.plx) and constructs a vital object suitable for use in other functions.

Usage

read_ktdb(country, triangle = 1)

Arguments

country

Directory abbreviation from the K-T database.

triangle

Lexis triangle number, 1 (default) is lower triangle, 2 is upper triangle.

Value

read_ktdb returns a vital object combining the downloaded data.

Author

Sixian Tang

Examples

if (FALSE) { # \dontrun{
australia <- read_ktdb(country = "Australia")
} # }