Using of match.arg on transfo arg in SimGR and CalGR
Checking transfo
argument in SimGR()
and in the CalGR()
functions using the match.arg()
function makes troubles.
It does not work when transfo
is set with a signle value equal to ""
.
## Run (default setting of transfo arg)
SimGR(PrepGR = PREP, Param = c(270.426, 0.984, 108.853, 2.149),
EffCrit = "KGE2", transfo = c("", "sqrt", "log", "inv", "sort"),
WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31"))
## Run
SimGR(PrepGR = PREP, Param = c(270.426, 0.984, 108.853, 2.149),
EffCrit = "KGE2", transfo = c("", "sqrt", "log", "inv", "sort"),
WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31"))
## Run
SimGR(PrepGR = PREP, Param = c(270.426, 0.984, 108.853, 2.149),
EffCrit = "KGE2", transfo = "sqrt",
WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31"))
## Does not run
SimGR(PrepGR = PREP, Param = c(270.426, 0.984, 108.853, 2.149),
EffCrit = "KGE2", transfo = "",
WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31"))