systematicSubset: Take a systematic subset of indices.

View source: R/systematicSubset.R

systematicSubsetR Documentation

Take a systematic subset of indices.

Description

Take a systematic subset of indices stratified by a ranking variable.

Usage

systematicSubset(n, order.by)

Arguments

n

integer giving the size of the subset.

order.by

numeric vector of the values by which the indices are ordered.

Value

systematicSubset returns a vector of size n.

Author(s)

Gordon Smyth

See Also

order

Examples

y <- rnorm(100, 1, 1)
systematicSubset(20, y)

OliverVoogd/edgeR documentation built on July 28, 2022, 10:13 p.m.