subsetKFold {AffiXcan} | R Documentation |
Split the numbers from 1 to n in k equally-sized lists
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
sampGroups <- subsetKFold(k=5, n=23)