ithChunk: index set for idx-th chunk of size chunk for n elements

Description Usage Arguments Value

View source: R/FUNCTIONS.R

Description

For proper use of this function it will return the set of variant indices corresponding to the idx-th chunk of size chunk in n variants, taking care of the case that the last chunk might have less than n elements. If used with an idx-value outside the possible chunks (i.e., negative or larger than ceiling(n/chunk)) an empty vector (numeric(0)) is returned.

Usage

1
ithChunk(idx, n, chunk = 1000)

Arguments

idx

chunk index (which chunk, first is 1)

n

total number of variants

chunk

desired chunksize

Value

index range into variants for chunk idx (see details)


episcan documentation built on May 2, 2019, 9:42 a.m.