\Header{dim}{Retrieve the Dimensions of an RGList, MAList or MArrayLM Object}
\methalias{dim.MAList}{dim}
\methalias{dim.MArrayLM}{dim}
\methalias{dim.RGList}{dim}
\keyword{array}{dim}
\begin{Description}\relax
Retreive the number of rows (genes) and columns (arrays) for an RGList, MAList or MArrayLM object.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'RGList':
dim(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] an object of class \code{RGList}, \code{MAList} or \code{MArrayLM}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The matrices of expression data from the individual objects are cbinded.
The data.frames of target information, if they exist, are rbinded.
The combined data object will preserve any additional components or attributes found in the first object to be combined.
\end{Details}
\begin{Value}
Numeric vector of length 2.
The first element is the number of rows (genes) and the second is the number of columns (arrays).\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{dim}} in the base package.

\link{2.Classes} gives an overview of data classes used 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("A1","A2")
MA <- new("MAList",list(M=M,A=A))
dim(M)
\end{ExampleCode}
\end{Examples}

