divideTrainTest: Train-Test Splitting

View source: R/functions.R

divideTrainTestR Documentation

Train-Test Splitting

Description

Divide a data frame into training and test set, or training, quiz and test set.

Usage

divideTrainTest(seed = NULL, prop.train = 0.6, prop.quiz = NULL, data)

Arguments

seed

A seed for randomization (recommended).

prop.train

Proportion of the data to include in the training set.

prop.quiz

Proportion of the data to include in a quiz set (if any). Set to NULL by default.

data

The data frame to be split.

Value

A list with elements named test and train, or with elements named train and quiz and test.

Note

For more details on use, consult http://statistics.rainandrhino.org/tigerTree/divideTrainTest.html


homerhanumat/tigerTree documentation built on Dec. 6, 2024, 3:44 p.m.