Description Usage Arguments Details
Index to randomly split data frame into groups, optionally stratified by a grouping variable.
1 |
DF |
name of a data frame which is to be split |
K |
number of 'folds' to split the data into |
Strat |
name of index of grouping variable in data frame |
Kcross(DF, K = 10, Strat = NULL)
returns a list of lists where each of the sublists consist of two objects, 'train' and 'test' which contain indexes to be used to choose rows of the data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.