Learn R Programming

MortalityTables (version 2.0)

getCohortTable: Return the cohort life table as a mortalityTable.period object

Description

Return the cohort life table as a mortalityTable.period object

Usage

getCohortTable(object, YOB, ...)

# S4 method for mortalityTable getCohortTable(object, YOB, ...)

Arguments

object

The life table object (class inherited from mortalityTable)

YOB

The birth year for which the life table should be calculated

...

Other parameters (currently unused)

Methods (by class)

  • mortalityTable: Return the cohort life table as a mortalityTable.period object

Examples

Run this code
# NOT RUN {
mortalityTables.load("Austria_Annuities")
tb75 = getCohortTable(AVOe2005R.male, YOB = 1975)
# The tb75 is a fixed table with no trend any more
plot(AVOe2005R.male, tb75, Period = 2017)

# }

Run the code above in your browser using DataLab