mT.round | R Documentation |
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
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 |
mT.round(mortalityTable)
: Round the given mortalityTable to a given number of digits
mT.round(mortalityTable.period)
: Round the given period mortality table to a given number of digits (base table and loadings)
mT.round(mortalityTable.trendProjection)
: Round the given mortalityTable with trend projection to a given number of digits (base table, loadings and trend(s))
mT.round(mortalityTable.improvementFactors)
: Round the given mortalityTable with improvement factors to a given number of digits (base table, loadings and improvement factors)
mT.round(array)
: Round the mortalityTables stored in an array to a given number of digits
mT.round(list)
: Round the mortalityTables stored in a list to a given number of digits
mT.round(pensionTable)
: Round all components of a pensionTable to a given number of digits
mT.round(mortalityTable.observed)
: Return the life table with the values rounded to the given number of digits
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.