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

Description Usage Arguments Value Examples

View source: R/AffiXcan.R

Description

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

Usage

1

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

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

AffiXcan documentation built on Nov. 8, 2020, 8:07 p.m.