Learn R Programming

MortalityTables (version 2.0.5)

ages: Return the defined ages of the life table

Description

Return the defined ages of the life table

Usage

ages(object, ...)

# S4 method for mortalityTable.period ages(object, ...)

# S4 method for mortalityTable.mixed ages(object, ...)

# S4 method for mortalityTable.jointLives ages(object, ...)

# S4 method for mortalityTable.observed ages(object, ...)

Arguments

object

A life table object (instance of a mortalityTable class)

...

Currently unused

Methods (by class)

  • ages(mortalityTable.period): Return the defined ages of the period life table

  • ages(mortalityTable.mixed): Return the defined ages of the mixed life table

  • ages(mortalityTable.jointLives): Return the defined ages of the joint lives mortality table (returns the ages of the first table used for joint lives)

  • ages(mortalityTable.observed): Return the defined ages of the observed life table

Examples

Run this code
mortalityTables.load("Austria_Annuities")
ages(AVOe2005R.male)
ages(AVOe1996R.male)

mortalityTables.load("Austria_Census")
ages(mort.AT.census.2011.male)

Run the code above in your browser using DataLab