From 6a57aeede35d879d5babc8f1e8e4694b4e32f0d3 Mon Sep 17 00:00:00 2001 From: Delaigue Olivier <olivier.delaigue@irstea.priv> Date: Mon, 22 Oct 2018 17:47:46 +0200 Subject: [PATCH] v1.1.2.12 NEW: ErrorCrit_RMSE returns classes RMSE and ErrorCrit --- DESCRIPTION | 2 +- R/ErrorCrit_RMSE.R | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 2545aa67..8dc4593f 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.11 +Version: 1.1.2.12 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_RMSE.R b/R/ErrorCrit_RMSE.R index 201a1197..fb35521b 100644 --- a/R/ErrorCrit_RMSE.R +++ b/R/ErrorCrit_RMSE.R @@ -131,6 +131,8 @@ ErrorCrit_RMSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = Multiplier = Multiplier, Ind_notcomputed = Ind_TS_ignore ) + + class(OutputsCrit) <- c("RMSE", "ErrorCrit") return(OutputsCrit) } -- GitLab