\HeaderA{subsetting}{Subset RGList, MAList or MArrayLM Objects}{subsetting}
\aliasA{[.MAList}{subsetting}{[.MAList}
\aliasA{[.MArrayLM}{subsetting}{[.MArrayLM}
\aliasA{[.RGList}{subsetting}{[.RGList}
\keyword{manip}{subsetting}
\begin{Description}\relax
Extract a subset of an \code{RGList}, \code{MAList} or \code{MArrayLM} object.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'RGList':
object[i, j, ...]
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] object of class \code{RGList}, \code{MAList} or \code{MArrayLM}
\item[\code{i,j}] elements to extract. \code{i} subsets the genes or spots while \code{j} subsets the arrays
\item[\code{...}] not used
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{i,j} may take any values acceptable for the matrix components of \code{object}.
See the \LinkA{Extract}{Extract} help entry for more details on subsetting matrices.
\end{Details}
\begin{Value}
An object of the same class as \code{object} holding data from the specified subset of genes and arrays.
\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{Extract}{Extract}} in the base package.

\LinkA{03.ReadingData}{03.ReadingData} gives an overview of data input and manipulation functions in LIMMA.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
M <- A <- matrix(11:14,4,2)
rownames(M) <- rownames(A) <- c("a","b","c","d")
colnames(M) <- colnames(A) <- c("A","B")
MA <- new("MAList",list(M=M,A=A))
MA[1:2,]
MA[1:2,2]
MA[,2]
\end{ExampleCode}
\end{Examples}

