forecast_date: Set forecasted date

Description Usage Arguments Value

View source: R/data_preparation.R

Description

A function to subset data recursively or with a rolling window to create a valid information set. Is used as a data preparation helper function and is called internally by forecast_univariate, forecast_multivariate, and forecast_combine.

Usage

1
forecast_date(forecast.date, horizon, freq)

Arguments

forecast.date

date: date forecast was made

horizon

int: periods ahead of forecast

freq

string: time series frequency; day, week, month, quarter, year; only needed for rolling window factors

Value

date vector


OOS documentation built on March 17, 2021, 5:08 p.m.