CreateOutputDates | R Documentation |
This function will collect date values for the output of the forecasting output
CreateOutputDates(
FULL_DATA,
DATE_COLUMN = "date_ymd",
DATA_TYPE_COLUMN = "DataType",
FORECAST_HORIZON = 3,
TIME_FRAME = "month",
EVAL_MODE = TRUE,
DEBUG = TRUE
)
FULL_DATA |
The full data set that will be used in the forecasting models |
DATE_COLUMN |
The column name of the date variable |
DATA_TYPE_COLUMN |
The column name of the data type variable |
FORECAST_HORIZON |
Forecast horizon for the prediction |
TIME_FRAME |
Is the forecast data daily, weekly, or monthly data |
EVAL_MODE |
If TRUE, only perform train and test on the actual data |
DEBUG |
If TRUE, the function will run in debug mode |
A sequence of dates for the output from the predictive model
Abraham Mathew
Other Data Preparation:
AddDays()
,
AddMissingDates()
,
AddMonths()
,
AddWeeks()
,
AggregateTimeSeriesData()
,
CheckForMissingDates()
,
DoDataPartition()
,
FakeDataGenerator()
,
FlattenLongData()
,
RemoveSpecialChars()
library(data.table)
FULL_DATA <- data.table::data.table(date_ymd = seq.Date(as.Date("2010-01-01"),
length.out = 12, by = "month"),
DataType = c(rep("TRAIN",9), rep("TEST",3)))
CreateOutputDates(FULL_DATA,
DATE_COLUMN = "date_ymd",
DATA_TYPE_COLUMN = "DataType",
FORECAST_HORIZON = 3,
TIME_FRAME = "month",
EVAL_MODE = TRUE,
DEBUG = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.