read_ktdb | R Documentation |
vital
object for use in other functionsread_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.
read_ktdb(country, triangle = 1)
country |
Country name or country code as specified by the KT database. For instance, Australian
data can be obtained using |
triangle |
Lexis triangle number, 1 (default) is lower triangle, 2 is upper triangle. |
read_ktdb
returns a vital
object combining the downloaded data.
Sixian Tang
## Not run:
australia <- read_ktdb(country = "Australia")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.