title: How to do unstratified (shuffled) k-fold cross validation using R?
body: <p>I would like to split my data into k training folds without using stratification (but optionally with shuffling). How would one achieve this in R? All threads that I found so far relate to stratified k-fold which is not what I want. Possibly related to this <a href="https://stats.stackexchange.com/questions/92904/rs-equivalente-of-scikits-kfold">CrossValidated thread</a>. The equivalent to this in Python would be to use <a href="https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.KFold.html" rel="nofollow noreferrer"><code>sklearn.model_selection.KFold</code></a></p>