split_in_folds | R Documentation |
Split n items into k folds
split_in_folds(n, k)
n |
integer, the number of items. |
k |
integer, the number of folds. |
A vector of length n, containing a integer in 1:k = the fold identifier
jihoml:::split_in_folds(k=3, n=10)
table(jihoml:::split_in_folds(k=3, n=100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.