From 234c9059a95e104917e488a6ddd2313234a96cdc Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 11 May 2020 05:15:19 +0200 Subject: Avoid merge() and data.frame() in cost function also for deSolve and eigenvalue based solutions. This noticeably increases performance for these methods, see test.log and benchmark vignette. --- R/plot.mkinfit.R | 1 + 1 file changed, 1 insertion(+) (limited to 'R/plot.mkinfit.R') diff --git a/R/plot.mkinfit.R b/R/plot.mkinfit.R index b2cb4890..48df9483 100644 --- a/R/plot.mkinfit.R +++ b/R/plot.mkinfit.R @@ -148,6 +148,7 @@ plot.mkinfit <- function(x, fit = x, solution_type = solution_type, atol = fit$atol, rtol = fit$rtol, use_compiled = FALSE) } + out <- as.data.frame(out) names(col_obs) <- names(pch_obs) <- names(lty_obs) <- obs_vars -- cgit v1.2.1