\HeaderA{subsetting}{Subset of RGList\_CALIB, SpikeList or ParameterList object}{subsetting}
\aliasA{[.ParameterList}{subsetting}{[.ParameterList}
\aliasA{[.RGList\_CALIB}{subsetting}{[.RGList.Rul.CALIB}
\aliasA{[.SpikeList}{subsetting}{[.SpikeList}
\keyword{array}{subsetting}
\begin{Description}\relax
Exact a subset of an RGList\_CALIB, SpikeList or ParameterList object.
\end{Description}
\begin{Usage}
\begin{verbatim}
 ## S3 method for class 'RGList_CALIB':
 object[i, j, ...]
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] an object of class \code{RGList\_CALIB} or \code{SpikeList}.
\item[\code{i,j}] subscripts. \code{i} is the subscripts of the spots 
and \code{j} is the subscripts of the arrays.
\item[\code{...}] not used
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{i},\code{j} may take any values acceptable for the matrix components of \code{object}.
see the \code{\LinkA{exact}{exact}} in the base package for more details.
\end{Details}
\begin{Value}
An object of the same class as \code{object} containing the data with specified
subset of spots and arrays.
\end{Value}
\begin{Author}\relax
Hui Zhao
\end{Author}
\begin{References}\relax
\code{\LinkA{subsetting}{subsetting}} in limma package
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{exact}{exact}} in the base package

\code{\LinkA{subsetting}{subsetting}} in the limma package
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

# for RGList_CALIB
R <- G <- matrix(1:8,4,2)
rownames(R) <- rownames(G) <- c("g1","g2","g3","g4")
colnames(R) <- colnames(G) <- c("a1","a2")
RG <- new("RGList_CALIB",list(R=R,G=G))

RG[1:2,]
RG[,1:2]
RG[1:2,1:2]
\end{ExampleCode}
\end{Examples}

