Commit 998b8712 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer

fix recursive evaluation / promise in mT.setTrend

parent 99585834
......@@ -119,11 +119,10 @@ mT.scaleProbs = function(table, factor = 1.0, name.postfix = "scaled", name = pa
#' @export
mT.setTrend = function(table, trend, trendages = ages(table), baseYear = baseYear(table)) {
mT.setTrend = function(table, trend, trendages = ages(table), baseYear = table@baseYear) {
if (!is(table, "mortalityTable"))
stop("First argument must be a mortalityTable.")
trend[table@ages %in% trendages]
t = mortalityTable.trendProjection(
table,
baseYear = baseYear,
......
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