Commit ffe72925 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.6.8.30 style: indent code in SeriesAggreg.data.frame

Refs #41
Showing with 3 additions and 4 deletions
+3 -4
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.6.8.29
Version: 1.6.8.30
Date: 2020-12-23
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -2,7 +2,7 @@
### 1.6.8.29 Release Notes (2020-12-22)
### 1.6.8.30 Release Notes (2020-12-22)
#### New features
......
......@@ -52,8 +52,7 @@ SeriesAggreg.data.frame <- function(x,
## check ConvertFun
listConvertFun <- list(sum = sum, mean = mean)
ConvertFun <-
names(listConvertFun)[match(ConvertFun, names(listConvertFun))]
ConvertFun <- names(listConvertFun)[match(ConvertFun, names(listConvertFun))]
if (anyNA(ConvertFun)) {
stop("'ConvertFun' should be a one of 'sum' or 'mean'")
}
......
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