Here we have a lifetable starting from lx, where the closeout age is very low, 60. I've followed values back to where they get passed to MortalityLaws::MortalityLaw() and the vector extrapFit (which becomes x_fit before passing to MortalityLaw() arg fit.this.x and it maintains length 9. However, its length is detected as < 2 in MortalityLaws::check.MortalityLaw(). Possible that this vector is being held in a single element list such that length(fit.this.x) evaluates to 1? I saw nowhere else along the passing of extrapFit where the length would get cut down.
Here we have a lifetable starting from
lx
, where the closeout age is very low, 60. I've followed values back to where they get passed toMortalityLaws::MortalityLaw()
and the vectorextrapFit
(which becomesx_fit
before passing toMortalityLaw()
argfit.this.x
and it maintains length 9. However, its length is detected as < 2 inMortalityLaws::check.MortalityLaw()
. Possible that this vector is being held in a single element list such thatlength(fit.this.x)
evaluates to 1? I saw nowhere else along the passing ofextrapFit
where the length would get cut down.