Learn R Programming

MortalityTables (version 2.0.5)

setLoading: Return a copy of the table with an additional loading added

Description

Return a copy of the table with an additional loading added

Usage

setLoading(object, loading = 0)

# S4 method for mortalityTable setLoading(object, loading = 0)

Arguments

object

A life table object (instance of a mortalityTable class)

loading

The additional (security) loading to be added to the table.

Methods (by class)

  • setLoading(mortalityTable): Return the life table with the given loading set

Examples

Run this code
mortalityTables.load("Austria_Census")
# Austrian census mortality 2011 reduced by 30%
setLoading(mort.AT.census.2011.male, loading = -0.3)

Run the code above in your browser using DataLab