powered by
The function folds generates a list of index for the n-fold cross-validation
folds
folds(idx, n, seed = 1)
A vector of index list
The number of n folds
The seed value to generate random n-fold index
A list of n-fold index
# NOT RUN { folds(seq(10), 3, 2020) # }
Run the code above in your browser using DataLab