Commit 2e3613af authored by Reinhold Kainhofer's avatar Reinhold Kainhofer

mortalityTable.Period: Allow NULL exposures (default)

parent e75d86ac
#' @include mortalityTable.R #' @include mortalityTable.R
NULL NULL
setClassUnion("numericOrNULL", c("numeric", "NULL"))
#' Class mortalityTable.period - Period life tables #' Class mortalityTable.period - Period life tables
#' #'
#' A period life table, giving death probabilities for each age, up to #' A period life table, giving death probabilities for each age, up to
...@@ -19,7 +22,7 @@ mortalityTable.period = setClass( ...@@ -19,7 +22,7 @@ mortalityTable.period = setClass(
slots = list( slots = list(
ages = "numeric", ages = "numeric",
deathProbs = "numeric", deathProbs = "numeric",
exposures = "numeric" exposures = "numericOrNULL"
), ),
prototype = list( prototype = list(
ages = eval(0:120), ages = eval(0:120),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment