mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +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
|
LazyData: true
|
||||||
VignetteBuilder: knitr
|
VignetteBuilder: knitr
|
||||||
Encoding: UTF-8
|
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
|
## Makes R CMD CHECK happy due to dplyr syntax below
|
||||||
globalVariables(c(
|
globalVariables(c(
|
||||||
"ds", "y", "cap", "yhat", "yhat_lower", "yhat_upper"))
|
"ds", "y", "cap", "yhat", "yhat_lower", "yhat_upper", "size"))
|
||||||
|
|
||||||
#' Generate cutoff dates
|
#' Generate cutoff dates
|
||||||
#'
|
#'
|
||||||
|
|
@ -408,7 +408,7 @@ rolling_median_by_h <- function(x, h, w, name) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
res.i <- data.frame(horizon=hs[i])
|
res.i <- data.frame(horizon=hs[i])
|
||||||
res.i[[name]] <- median(xs)
|
res.i[[name]] <- stats::median(xs)
|
||||||
res <- rbind(res.i, res)
|
res <- rbind(res.i, res)
|
||||||
i <- i - 1
|
i <- i - 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue