Utility function to create folds of data, used in cross-validation proceidures.
The implementation is originally from the gbex R package
Examples
make_folds(rnorm(30), 5)
#> [1] 1 2 1 1 5 1 2 2 3 1 4 3 5 4 5 4 5 3 2 4 5 2 3 3 3 4 4 2 5 1
Utility function to create folds of data, used in cross-validation proceidures.
The implementation is originally from the gbex R package
make_folds(rnorm(30), 5)
#> [1] 1 2 1 1 5 1 2 2 3 1 4 3 5 4 5 4 5 3 2 4 5 2 3 3 3 4 4 2 5 1