powered by
This function generate data folds for cross validation given stratified samples
createFolds(strat_id, k)
A list of sample indices in k folds.
A vector of the stratified sample id. E.g. In total of 5 samples, first three from group 1, last two from group 2 -> c(1, 1, 1, 2, 2)
Number of folds to create.