Learn R Programming

edgeR (version 3.14.0)

systematicSubset: 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

returns a vector of size n.

See Also

order

Examples

Run this code
y <- rnorm(100, 1, 1)
systematicSubset(20, y)

Run the code above in your browser using DataLab