\HeaderA{dimnames}{Retrieve the Dimension Names of an RGList\_CALIB or SpikeList object.}{dimnames}
\methaliasA{dimnames.RGList\_CALIB}{dimnames}{dimnames.RGList.Rul.CALIB}
\methaliasA{dimnames.SpikeList}{dimnames}{dimnames.SpikeList}
\keyword{array}{dimnames}
\begin{Description}\relax
Retrieve the the dimension names of an RGList\_CALIB object or an SpikeList object
\end{Description}
\begin{Usage}
\begin{verbatim}
 ## S3 method for class 'RGList_CALIB':
 dimnames(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] an object of class \code{RGList\_CALIB} or \code{SpikeList}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The dimension names of a micrroarry object or a spike object are the same as
those of the most important matrix component of that object.

A consequence is that row and column command \code{rownames} and \code{colnames} also work.
\end{Details}
\begin{Value}
Either \code{NULL} or a list of length 2. If the value is a list, its componets are either
\code{NULL} or a character vector with the length of the appropriate dimension of \code{x}. 
If the list component is not \code{NULL}, the first field of the list indicates rownames 
and the second field indicates colnames.
\end{Value}
\begin{Author}\relax
Hui Zhao
\end{Author}
\begin{References}\relax
\code{\LinkA{dimnames}{dimnames}} in limma package
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{dimnames}{dimnames}} in the base package

\code{\LinkA{dimnames}{dimnames}} 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))

dimnames(RG)

# for SpikeList
SR <- SG <- matrix(1:8,4,2)
rownames(SR) <- rownames(SG) <- c("s1","s2","s3","s4")
colnames(SR) <- colnames(SG) <- c("a1","a2")
spike <- new("SpikeList",list(R=SR,G=SG))

dimnames(spike)
\end{ExampleCode}
\end{Examples}

