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)

edgeR documentation built on Nov. 17, 2017, 9:48 a.m.