AddEngineeredDates | R Documentation |
This function will take raw data and aggregate it by date
AddEngineeredDates(
AGG_TS_DATA,
DATE_COLUMN = "date",
ADD_CHRISTMAS = TRUE,
ADD_NEW_YEAR = TRUE,
ADD_OTHER_HOLIDAY = TRUE,
ADD_COVID_SHOCK = TRUE,
DEBUG = TRUE
)
AGG_TS_DATA |
The raw dataset that will be aggregated |
DATE_COLUMN |
The column name containing date value |
ADD_CHRISTMAS |
Add a feature to identify Christmas |
ADD_NEW_YEAR |
Add a feature to identify New Years |
ADD_OTHER_HOLIDAY |
Add a feature to identify Other Holidays |
ADD_COVID_SHOCK |
Add a feature to identify the months where Covid was prominent |
DEBUG |
If TRUE, the function will run in debug mode |
returns a data table with the aggregated data by date and any potential group variables
Abraham Mathew
Other Feature Engineering:
CreateTimeSeriesFeatures()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.