Learn R Programming

RemixAutoML (version 0.11.0)

TimeSeriesFill: TimeSeriesFill For Completing Time Series Data

Description

TimeSeriesFill For Completing Time Series Data For Single Series or Time Series by Group

Usage

TimeSeriesFill(data = data, DateColumnName = "Date",
  GroupVariables = NULL, TimeUnit = "days", FillType = "all")

Arguments

data

Supply your full series data set here

DateColumnName

Supply the name of your date column

GroupVariables

Supply the column names of your group variables. E.g. "Group" or c("Group1","Group2")

TimeUnit

Choose from "second", "minute", "hour", "day", "week", "month", "quarter", "year"

FillType

Choose from "all" or "inner". Only relevant for when you have GroupVariables. The "all" option will take the max date and the min date of the entire data set and fill according to those. The "inner" option will grab the max and min dates by group levels and fill each group level based on those.

Value

Returns a data table with missing time series records filled (currently just zeros)

See Also

Other Feature Engineering: AutoDataPartition, AutoTransformationCreate, AutoTransformationScore, AutoWord2VecModeler, CreateCalendarVariables, CreateHolidayVariables, DT_GDL_Feature_Engineering, DummifyDT, GDL_Feature_Engineering, ModelDataPrep, Partial_DT_GDL_Feature_Engineering, Scoring_GDL_Feature_Engineering

Examples

Run this code
# NOT RUN {
data <- TimeSeriesFill(data,
                       DateColumnName = "Date",
                       GroupVariables = "GroupVar",
                       TimeUnit = "days",
                       FillType = "inner")
# }

Run the code above in your browser using DataLab