Commit 25e730a0 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.3.2.5 CLEAN: warning message improved in PE_Oudin

parent a69f0b5b
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.3.2.4
Version: 1.3.2.5
Date: 2019-05-22
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -14,7 +14,7 @@ output:
### 1.3.2.4 Release Notes (2019-05-22)
### 1.3.2.5 Release Notes (2019-05-22)
#### New features
......
......@@ -67,7 +67,7 @@ PE_Oudin <- function(JD, Temp,
rleJD <- rle(JD)
JD <- rleJD$values
if (any(rleJD$lengths != 24)) {
stop("each days must have 24 identical Julian day values (one for each hour)")
stop("each day must have 24 identical values of julian days (one for each hour)")
}
idJD <- rep(seq_along(JD), each = rleJD$lengths[1L])
Temp <- as.vector(tapply(X = Temp, INDEX = idJD, FUN = mean))
......
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