File: systematicSubset.Rd

package info (click to toggle)
r-bioc-edger 3.40.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,484 kB
  • sloc: cpp: 1,425; ansic: 1,109; sh: 21; makefile: 5
file content (34 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (3)
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}}
}