From 904ba9668eb76eaae4960e2188134e8c88da07ee Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 7 Dec 2022 16:19:54 +0100 Subject: Fix parplot for the case of failed multistart runs --- R/parms.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'R/parms.R') diff --git a/R/parms.R b/R/parms.R index bd4e479b..bb04a570 100644 --- a/R/parms.R +++ b/R/parms.R @@ -77,6 +77,6 @@ parms.multistart <- function(object, exclude_failed = TRUE, ...) { successful <- which(!is.na(res[, 1])) first_success <- successful[1] colnames(res) <- names(parms(object[[first_success]])) - if (exclude_failed) res <- res[successful, ] + if (exclude_failed[1]) res <- res[successful, ] return(res) } -- cgit v1.2.3