subsetKFold {AffiXcan} | R Documentation

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

### Description

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

### Usage

    subsetKFold(k, n)

### Arguments

`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

### Value

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

### Examples

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

[Package AffiXcan version 1.12.0 Index]