Description Usage Arguments Methods (by class) Examples
The function mt.round rounds all components (base table, potentially also trend functions or yearly improvement factors) to the given number of numerical digits. For pensionTable objects, the function is applied to all components
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | mT.round(object, digits = 8)
## S4 method for signature 'mortalityTable'
mT.round(object, digits = 8)
## S4 method for signature 'mortalityTable.period'
mT.round(object, digits = 8)
## S4 method for signature 'mortalityTable.trendProjection'
mT.round(object, digits = 8)
## S4 method for signature 'mortalityTable.improvementFactors'
mT.round(object, digits = 8)
## S4 method for signature 'array'
mT.round(object, digits = 8)
## S4 method for signature 'list'
mT.round(object, digits = 8)
## S4 method for signature 'pensionTable'
mT.round(object, digits = 8)
## S4 method for signature 'mortalityTable.observed'
mT.round(object, digits = 8)
|
object |
The mortalityTable object to be rounded (or a list / array of mortalityTable object) |
digits |
the desired number of significant digits to round to |
mortalityTable
: Round the given mortalityTable to a given number of digits
mortalityTable.period
: Round the given period mortality table to a given number of digits (base table and loadings)
mortalityTable.trendProjection
: Round the given mortalityTable with trend projection to a given number of digits (base table, loadings and trend(s))
mortalityTable.improvementFactors
: Round the given mortalityTable with improvement factors to a given number of digits (base table, loadings and improvement factors)
array
: Round the mortalityTables stored in an array to a given number of digits
list
: Round the mortalityTables stored in a list to a given number of digits
pensionTable
: Round all components of a pensionTable to a given number of digits
mortalityTable.observed
: Return the life table with the values rounded to the given number of digits
1 2 3 4 5 6 7 | mortalityTables.load("Austria_Census")
AT.rounded1 = mT.round(mort.AT.census.2011.male, 1)
AT.rounded2 = mT.round(mort.AT.census.2011.male, 2)
AT.rounded3 = mT.round(mort.AT.census.2011.male, 3)
plotMortalityTables(mort.AT.census.2001.male,
mT.setName(AT.rounded1, "rounded to 1 digit"),
mT.setName(AT.rounded3, "rounded to 3 digits"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.