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)

Example output

Loading required package: limma
 [1] 24 34 77 63 39 82 20 36  6 86 32 13 57 92 69 72 66 80 33 75

edgeR documentation built on Jan. 16, 2021, 2:03 a.m.