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