Learn R Programming

MortalityTables (version 2.0)

lifeTable: Return the lifetable object (package lifecontingencies) for the cohort life table

Description

Return the lifetable object (package lifecontingencies) for the cohort life table

Usage

lifeTable(object, ...)

# S4 method for mortalityTable lifeTable(object, ...)

Arguments

object

The life table object (class inherited from mortalityTable)

...

Parameters to be passed to the deathProbabilities method of the life table

Methods (by class)

  • mortalityTable: Return the lifetable object (package lifecontingencies) for the cohort life table

Examples

Run this code
# NOT RUN {
library("lifecontingencies")
mortalityTables.load("Austria_Annuities")
lifeTable(AVOe2005R.male, YOB = 2017)
axn(lifeTable(AVOe2005R.male, YOB = 1975), x = 65, i = 0.03)
axn(lifeTable(AVOe2005R.male, YOB = 2017), x = 65, i = 0.03)

# }

Run the code above in your browser using DataLab