mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-06-10 00:39:01 +00:00
Add m as argument to make_future_dataframe
This commit is contained in:
parent
796b0f8037
commit
c836b520ab
1 changed files with 4 additions and 0 deletions
|
|
@ -1054,6 +1054,10 @@ sample_predictive_trend <- function(model, df, iteration) {
|
|||
#' @export
|
||||
make_future_dataframe <- function(m, periods, freq = 'day',
|
||||
include_history = TRUE) {
|
||||
# For backwards compatability with previous zoo date type,
|
||||
if (freq == 'm') {
|
||||
freq <- 'month'
|
||||
}
|
||||
dates <- seq(max(m$history.dates), length.out = periods + 1, by = freq)
|
||||
dates <- dates[2:(periods + 1)] # Drop the first, which is max(history$ds)
|
||||
if (include_history) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue