DoDataPartition: DoDataPartition

DoDataPartitionR Documentation

DoDataPartition

Description

This function will take one dataset and return data for training and testing

Usage

DoDataPartition(
  DATA_DT,
  DATE_COLUMN = "SalesDate",
  TARGET_COLUMN = "Sales",
  WHICH_FEATURES = NULL,
  TRAIN_RATIO = 0.8,
  PARTITION_TYPE = "time",
  DEBUG = TRUE
)

Arguments

DATA_DT

A data.table which contains the main dataset

DATE_COLUMN

The variable which contains date values

TARGET_COLUMN

The variable which contains the target variable

WHICH_FEATURES

The variables that will need to be in the final dataset

TRAIN_RATIO

Percentage of rows that will be in the dataset

PARTITION_TYPE

Partition by time or randomly

DEBUG

If TRUE, the function will be run in debug mode

Author(s)

Abraham Mathew

See Also

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


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