This function takes a list of data.frame and returns a random sample of the original list to be used for for training a model. The remaining data.frame should be used to test the model.

TrainSetList(dt_ls, s_train = 0.75)

Arguments

dt_ls

A list of data.frames

s_train

Numeric. The size of the training set. Any value between (0:1)

Value

A random subset of data.frames as a list.