Commit 3e541632 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.1.3.6 CLEAN: minor typo revision in ErrorCrit_NSE

Showing with 8 additions and 8 deletions
+8 -8
Package: airGR Package: airGR
Type: Package Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.1.3.5 Version: 1.1.3.6
Date: 2019-02-21 Date: 2019-02-21
Authors@R: c( Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")), person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
...@@ -13,7 +13,7 @@ output: ...@@ -13,7 +13,7 @@ output:
### 1.1.3.5 Release Notes (2019-02-21) ### 1.1.3.6 Release Notes (2019-02-21)
......
...@@ -6,8 +6,8 @@ ErrorCrit_NSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T ...@@ -6,8 +6,8 @@ ErrorCrit_NSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T
stop("InputsCrit must be of class 'InputsCrit' \n") stop("InputsCrit must be of class 'InputsCrit' \n")
return(NULL) return(NULL)
} }
if (inherits(InputsCrit, "Multi") | inherits(InputsCrit, "Compo")) { if (inherits(InputsCrit, "Multi") | inherits(InputsCrit, "Compo")) {
stop("InputsCrit must be of class 'Single'. Use the ErrorCrit function on objects of class 'Multi' or 'Compo'") stop("InputsCrit must be of class 'Single'. Use the ErrorCrit function on objects of class 'Multi' or 'Compo' with NSE")
return(NULL) return(NULL)
} }
if (!inherits(OutputsModel, "OutputsModel")) { if (!inherits(OutputsModel, "OutputsModel")) {
...@@ -34,10 +34,10 @@ ErrorCrit_NSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T ...@@ -34,10 +34,10 @@ ErrorCrit_NSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T
if (InputsCrit$transfo == "sort") { if (InputsCrit$transfo == "sort") {
CritName <- "NSE[sort(CritVar)]" CritName <- "NSE[sort(CritVar)]"
} }
CritName <- gsub(pattern = "CritVar", replacement = CritVar, x = CritName) CritName <- gsub(pattern = "CritVar", replacement = CritVar, x = CritName)
CritValue <- NA CritValue <- NA
CritBestValue <- +1 CritBestValue <- +1
Multiplier <- -1 Multiplier <- -1
### must be equal to -1 or +1 only ### must be equal to -1 or +1 only
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment