powered by
find.division.not.strat(vett, n_fold)
find.division.strat
n <- 100; vett <- runif(n, 0, 1); n_fold <- 5; fold_list <- find.division.not.strat(vett, n_fold); length(fold_list); ## indices of the first fold fold_list[[1]];
Run the code above in your browser using DataLab