Create all k test folds from the training data

createTestDataFolds(data, trainDataList, ...)

Arguments

data

A data.frame representing the complete dataset.

trainDataList

A list of data.frame representing each of the data training folds. These should be derived from data.

...

Arguments passed to createTestDataFold.

See also

Examples

data(latrendData)

if (require("caret")) {
  trainDataList <- createTrainDataFolds(latrendData, folds = 10, id = "Id")
  testDataList <- createTestDataFolds(latrendData, trainDataList)
}