Commit f25ee99c authored by Delaigue Olivier's avatar Delaigue Olivier

v1.4.3.81 CLEAN: useless argument checks removed from SeriesAggreg

parent 2129c663
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.4.3.80
Version: 1.4.3.81
Date: 2020-04-06
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -4,7 +4,7 @@
### 1.4.3.80 Release Notes (2020-04-06)
### 1.4.3.81 Release Notes (2020-04-06)
#### CRAN-compatibility updates
......
......@@ -8,9 +8,6 @@ SeriesAggreg <- function(TabSeries,
##_Arguments_check
##check_TabSeries
if (is.null(TabSeries) ) {
stop("'TabSeries' must be a data.frame containing the dates and data to be converted")
}
if (!is.data.frame(TabSeries)) {
stop("'TabSeries' must be a data.frame containing the dates and data to be converted")
}
......@@ -34,9 +31,6 @@ SeriesAggreg <- function(TabSeries,
TimeFormat <- match.arg(TimeFormat , choices = TimeStep)
NewTimeFormat <- match.arg(NewTimeFormat, choices = TimeStep)
##check_ConvertFun
if (is.null(ConvertFun)) {
stop("'ConvertFun' must be a vector of character")
}
if (!is.vector(ConvertFun)) {
stop("'ConvertFun' must be a vector of character")
}
......@@ -52,9 +46,6 @@ SeriesAggreg <- function(TabSeries,
stop("'ConvertFun' elements must be one of 'sum' or 'mean'")
}
##check_YearFirstMonth
if (is.null(YearFirstMonth)) {
stop("'YearFirstMonth' must be an integer between 1 and 12")
}
if (!is.vector(YearFirstMonth)) {
stop("'YearFirstMonth' must be an integer between 1 and 12")
}
......
Markdown is supported
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