powered by
Taken from caret package, used to create folds
createFolds(y, k = 10, list = TRUE, returnTrain = FALSE)
null
target variable
number of folds