Description Usage Arguments Value Examples

Split the numbers from 1 to n in k equally-sized lists

1 | ```
subsetKFold(k, n)
``` |

`k` |
An integer. The number of groups in which the first n natural numbers are to be splitted |

`n` |
An integer. Defines the interval 1..n |

A list of lists; the first natural n numbers equally distributed across k lists

1 | ```
sampGroups <- subsetKFold(k=5, n=23)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.