Learn R Programming

edge (version 2.4.2)

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

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