Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HYCAR-Hydro
airGRteaching
Commits
63b9e688
Commit
63b9e688
authored
Aug 04, 2021
by
Delaigue Olivier
Browse files
style: remove extra whitespaces
Refs
#45
parent
5143b123
Pipeline
#26073
passed with stage
in 1 minute and 45 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
R/CalGR.R
View file @
63b9e688
...
...
@@ -5,7 +5,7 @@ CalGR <- function(PrepGR, CalCrit = c("NSE", "KGE", "KGE2", "RMSE"),
CalCrit
<-
sprintf
(
"ErrorCrit_%s"
,
CalCrit
)
FUN_CRIT
<-
get
(
CalCrit
)
if
(
!
any
(
transfo
%in%
c
(
""
,
"sqrt"
,
"log"
,
"inv"
,
"sort"
)))
{
if
(
!
any
(
transfo
%in%
c
(
""
,
"sqrt"
,
"log"
,
"inv"
,
"sort"
)))
{
stop
(
"Non convenient transformation \"transfo\""
)
}
else
{
transfo
<-
transfo
[
1L
]
...
...
R/PrepGR.R
View file @
63b9e688
...
...
@@ -44,7 +44,7 @@ PrepGR <- function(ObsDF = NULL, DatesR = NULL, Precip = NULL, PotEvap = NULL, Q
TempMean
=
TempMean
)
}
if
(
!
any
(
attributes
(
ObsDF
$
DatesR
[
1
])
$
tzone
%in%
"UTC"
))
{
if
(
!
any
(
attributes
(
ObsDF
$
DatesR
[
1
])
$
tzone
%in%
"UTC"
))
{
stop
(
"Non convenient date format. Time zone must be defined as \"UTC\""
)
}
...
...
R/SimGR.R
View file @
63b9e688
...
...
@@ -5,7 +5,7 @@ SimGR <- function(PrepGR, CalGR = NULL, Param, EffCrit = c("NSE", "KGE", "KGE2",
EffCrit
<-
sprintf
(
"ErrorCrit_%s"
,
EffCrit
)
FUN_CRIT
<-
get
(
EffCrit
)
if
(
!
any
(
transfo
%in%
c
(
""
,
"sqrt"
,
"log"
,
"inv"
,
"sort"
)))
{
if
(
!
any
(
transfo
%in%
c
(
""
,
"sqrt"
,
"log"
,
"inv"
,
"sort"
)))
{
stop
(
"Non convenient transformation \"transfo\""
)
}
else
{
transfo
<-
transfo
[
1L
]
...
...
R/plot.CalGR.R
View file @
63b9e688
...
...
@@ -3,7 +3,7 @@ plot.CalGR <- function(x, xlab = NULL, ylab = NULL, main = NULL, which = c("per
if
(
!
inherits
(
x
,
"CalGR"
))
{
stop
(
"Non convenient data for x argument. Must be of class \"CalGR\""
)
}
if
(
!
any
(
which
%in%
c
(
"perf"
,
"iter"
,
"ts"
)))
{
if
(
!
any
(
which
%in%
c
(
"perf"
,
"iter"
,
"ts"
)))
{
stop
(
"Non convenient data for which argument. Must be of class \"perf\", \"iter\" or \"ts\""
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment