AddMissingDates | R Documentation |
This function will add missing dates in a time series
AddMissingDates(
AGG_TS_DATA,
DATE_COLUMN = "date",
TARGET_COLUMN = "vals",
TIME_FRAME = "day",
IMPUTE_VALUE = 0.1,
DEBUG = TRUE
)
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 |
returns a data table with all missing dates imputed with a imputed value
Abraham Mathew
Other Data Preparation:
AddDays()
,
AddMonths()
,
AddWeeks()
,
AggregateTimeSeriesData()
,
CheckForMissingDates()
,
CreateOutputDates()
,
DoDataPartition()
,
FakeDataGenerator()
,
FlattenLongData()
,
RemoveSpecialChars()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.