\HeaderA{dim}{Retrieve the Dimensions of an marrayRaw, marrayNorm or marrayInfo Object}{dim}
\methaliasA{dim.marrayInfo}{dim}{dim.marrayInfo}
\methaliasA{dim.marrayNorm}{dim}{dim.marrayNorm}
\methaliasA{dim.marrayRaw}{dim}{dim.marrayRaw}
\keyword{array}{dim}
\begin{Description}\relax
Retrieve the number of rows (genes) and columns (arrays) for an
marrayRaw, marrayNorm or marrayInfo object.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'marrayRaw':
dim(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] an object of class \code{marrayRaw}, \code{marrayNorm} or \code{marrayInfo}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Microarray data objects share many analogies with ordinary matrices in
which the rows correspond to spots or genes and the columns to arrays. 
These methods allow one to extract the size of microarray data objects
in the same way that one would do for ordinary matrices. 

A consequence is that row and column commands \code{nrow(x)}, \code{ncol(x)} and so on also work.
\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
modified from Gordon Smyth's function
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{dim}{dim}} 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("A1","A2")
MA <- new("marrayNorm", maM=M,maA=A)
dim(MA)
dim(M)
\end{ExampleCode}
\end{Examples}


