Skip to contents

Train-Test Split

Usage

trainTestSplit(data = NULL, target = NULL, prop, seed = "4814")

Arguments

data

Full data set with global preprocess completed.

target

The target variable.

prop

Proportion of total data to be used as training data.

seed

Seed for reproducible results.

Details

Separate the entire data into a training set and a test set.