Split into train and test

SplitIntoTrainTest(inputted.data, percent.to.train.with, seed)

Arguments

inputted.data

A dataframe.

percent.to.train.with

A number from 0 to 1 indicating percentage of data to be used for training.

seed

A number to set the seed for random number generation.

Value

List with two objects. Train and test data, in that order.

See also