mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-07-30 20:18:11 +00:00
resolve R check note
This commit is contained in:
parent
dbe8f49de7
commit
dd9a6a4161
2 changed files with 3 additions and 3 deletions
|
|
@ -48,4 +48,4 @@ LinkingTo:
|
|||
LazyData: true
|
||||
VignetteBuilder: knitr
|
||||
Encoding: UTF-8
|
||||
RoxygenNote: 7.1.0
|
||||
RoxygenNote: 7.1.1
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
## Makes R CMD CHECK happy due to dplyr syntax below
|
||||
globalVariables(c(
|
||||
"ds", "y", "cap", "yhat", "yhat_lower", "yhat_upper"))
|
||||
"ds", "y", "cap", "yhat", "yhat_lower", "yhat_upper", "size"))
|
||||
|
||||
#' Generate cutoff dates
|
||||
#'
|
||||
|
|
@ -408,7 +408,7 @@ rolling_median_by_h <- function(x, h, w, name) {
|
|||
break
|
||||
}
|
||||
res.i <- data.frame(horizon=hs[i])
|
||||
res.i[[name]] <- median(xs)
|
||||
res.i[[name]] <- stats::median(xs)
|
||||
res <- rbind(res.i, res)
|
||||
i <- i - 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue