diff options
Diffstat (limited to 'R')
-rw-r--r-- | R/mkinfit.R | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/R/mkinfit.R b/R/mkinfit.R index 12df0325..ee7c0b99 100644 --- a/R/mkinfit.R +++ b/R/mkinfit.R @@ -424,7 +424,8 @@ mkinfit <- function(mkinmod, observed, state.ini_used <- state.ini_auto } else { state.ini_used <- state.ini_auto - state.ini_used[names(state.ini)] <- state.ini + state.ini_good <- intersect(names(mkinmod$diffs), names(state.ini)) + state.ini_used[state.ini_good] <- state.ini[state.ini_good] } state.ini <- state.ini_used |