From 95ba5eab33b56f30c665cee10f131da9e683f96a Mon Sep 17 00:00:00 2001 From: Delaigue Olivier <olivier.delaigue@irstea.priv> Date: Mon, 22 Oct 2018 17:46:48 +0200 Subject: [PATCH] v1.1.2.10 NEW: ErrorCrit_KGE2 returns classes KGE2 and ErrorCrit --- DESCRIPTION | 2 +- R/ErrorCrit_KGE2.R | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index a8cc9c13..9a9bf506 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: airGR Type: Package Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling -Version: 1.1.2.9 +Version: 1.1.2.10 Date: 2018-10-22 Authors@R: c( person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")), diff --git a/R/ErrorCrit_KGE2.R b/R/ErrorCrit_KGE2.R index 8a8791a4..97e08798 100644 --- a/R/ErrorCrit_KGE2.R +++ b/R/ErrorCrit_KGE2.R @@ -219,6 +219,8 @@ ErrorCrit_KGE2 <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = Multiplier = Multiplier, Ind_notcomputed = Ind_TS_ignore ) + + class(OutputsCrit) <- c("KGE2", "ErrorCrit") return(OutputsCrit) } -- GitLab