systematicSubset: Take a systematic subset of indices.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/systematicSubset.R

Description

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

Usage

1
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

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

hiraksarkar/edgeR_fork documentation built on Dec. 20, 2021, 3:52 p.m.