Description Usage Arguments Examples
View source: R/utilityFunctions.R
Restrict the given mortalityTable
object(s) to given ages, potentially filling with NA values to ensure they cover the full desired age range
1 | mT.fillAges(table, neededAges, fill = 0)
|
table |
A life table object (instance of a |
neededAges |
The vector of ages the returned objects should cover (even if the values are 0 or NA) |
fill |
The value to use for all ages for which the original table(s) do not have any information |
1 2 3 4 | mortalityTables.load("Austria_Annuities")
# return a table with only ages 100-130, where ages above 120 (not defined
# in the original table) are filled with qx=1:
mT.fillAges(AVOe2005R.male, neededAges = 100:130, fill = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.