CreateOutputDates: CreateOutputDates

CreateOutputDatesR Documentation

CreateOutputDates

Description

This function will collect date values for the output of the forecasting output

Usage

CreateOutputDates(
  FULL_DATA,
  DATE_COLUMN = "date_ymd",
  DATA_TYPE_COLUMN = "DataType",
  FORECAST_HORIZON = 3,
  TIME_FRAME = "month",
  EVAL_MODE = TRUE,
  DEBUG = TRUE
)

Arguments

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

Value

A sequence of dates for the output from the predictive model

Author(s)

Abraham Mathew

See Also

Other Data Preparation: AddDays(), AddMissingDates(), AddMonths(), AddWeeks(), AggregateTimeSeriesData(), CheckForMissingDates(), DoDataPartition(), FakeDataGenerator(), FlattenLongData(), RemoveSpecialChars()

Examples




     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)
                           




abmathewks/GoodeR documentation built on June 12, 2025, 1:48 a.m.