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

\link{3.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}

