View source: R/systematicSubset.R
systematicSubset | R Documentation |
Take a systematic subset of indices stratified by a ranking variable.
systematicSubset(n, order.by)
n |
integer giving the size of the subset. |
order.by |
numeric vector of the values by which the indices are ordered. |
systematicSubset
returns a vector of size n
.
Gordon Smyth
order
y <- rnorm(100, 1, 1) systematicSubset(20, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.