dot-splitIndex: Split a vector into groups

Description Usage Arguments Value

Description

Split a vector into groups

Usage

1
.splitIndex(index, nGroups, randomize = FALSE)

Arguments

index

the vector of index values to be split into groups

nGroups

number of groups to be generated

randomize

should the groups contain a random or ordered sampling from the index vector

Value

returns a list containing 'groups' and 'groupIndex' both of which are lists of length nGroups


pmbrophy/mspReader documentation built on May 26, 2020, 9:58 p.m.