1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
\name{systematicSubset}
\alias{systematicSubset}
\title{Take a systematic subset of indices.}
\description{
Take a systematic subset of indices stratified by a ranking variable.
}
\usage{
systematicSubset(n, order.by)
}
\arguments{
\item{n}{integer giving the size of the subset.}
\item{order.by}{numeric vector of the values by which the indices are ordered.}
}
\value{
\code{systematicSubset} returns a vector of size \code{n}.
}
\author{Gordon Smyth}
\examples{
y <- rnorm(100, 1, 1)
systematicSubset(20, y)
}
\seealso{
\code{\link{order}}
}
|