\HeaderA{subset.madata}{Subsetting Microarray data objects}{subset.madata}
\keyword{utilities}{subset.madata}
\begin{Description}\relax
Return subsets of an an object of class \code{madata} meeting given
conditions.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'madata':
subset(x, arrays, genes, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An object of class \code{madata}. Read
\code{\LinkA{createData}{createData}} for details.
\item[\code{arrays}] A vector specifying which arrays to keep or discard.
\item[\code{genes}] A vector specifying which genes to keep or discard.
\item[\code{...}] Ignored at this point.
\end{ldescription}
\end{Arguments}
\begin{Value}
An object of class \code{madata} with specified arrays and genes.
\end{Value}
\begin{Author}\relax
Hao Wu
\end{Author}
\begin{Examples}
\begin{ExampleCode}
data(kidney)
## Not run: 
smalldata <- subset(kidney.raw, arrays=c(1,2))
# take out the all arrays except array 1
idx.array <- 1:kidney.raw$n.array
smalldata <- subset(kidney.raw,arrays=(idx.array[-1]))
# take out gene number 1 to 20
smalldata <- subset(kidney.raw,genes=1:20)
## End(Not run)\end{ExampleCode}
\end{Examples}

