AddMissingDates: AddMissingDates

AddMissingDatesR Documentation

AddMissingDates

Description

This function will add missing dates in a time series

Usage

AddMissingDates(
  AGG_TS_DATA,
  DATE_COLUMN = "date",
  TARGET_COLUMN = "vals",
  TIME_FRAME = "day",
  IMPUTE_VALUE = 0.1,
  DEBUG = TRUE
)

Arguments

AGG_TS_DATA

The raw dataset that will be aggregated

DATE_COLUMN

The column name containing date value

TARGET_COLUMN

The column name containing target value

TIME_FRAME

The date values in the data (day, week, or month)

IMPUTE_VALUE

The value to impute missing dates with

DEBUG

If TRUE, the function will run in debug mode

Value

returns a data table with all missing dates imputed with a imputed value

Author(s)

Abraham Mathew

See Also

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


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