\HeaderA{subsetting}{Subset SegList Objects}{subsetting}
\aliasA{[.SegList}{subsetting}{[.SegList}
\keyword{manip}{subsetting}
\begin{Description}\relax
Extract a subset of an \code{SegList} object.
\end{Description}
\begin{Usage}
\begin{verbatim}
object[i, j]
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] object of class \code{SegList}
\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 \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, modified by Mike Smith for SegList object
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{Extract}{Extract}} in the base package.
\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}

