\HeaderA{dim}{Retrieve the dimension of microarray objects}{dim}
\methaliasA{dim.maiges}{dim}{dim.maiges}
\methaliasA{dim.maigesANOVA}{dim}{dim.maigesANOVA}
\methaliasA{dim.maigesPreRaw}{dim}{dim.maigesPreRaw}
\methaliasA{dim.maigesRaw}{dim}{dim.maigesRaw}
\keyword{array}{dim}
\begin{Description}\relax
Generic function \code{\LinkA{dim}{dim}} to retrieve the number of
rows (genes) and columns (arrays) for classes \code{\LinkA{maigesPreRaw}{maigesPreRaw}},
\code{\LinkA{maigesRaw}{maigesRaw}}, \code{\LinkA{maiges}{maiges}} and \code{\LinkA{maigesANOVA}{maigesANOVA}}.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'maigesPreRaw':
dim(x)

## S3 method for class 'maigesRaw':
dim(x)

## S3 method for class 'maiges':
dim(x)

## S3 method for class 'maigesANOVA':
dim(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] an object of class \code{\LinkA{maigesPreRaw}{maigesPreRaw}},
\code{\LinkA{maigesRaw}{maigesRaw}}, \code{\LinkA{maiges}{maiges}} or \code{\LinkA{maigesANOVA}{maigesANOVA}}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is a function to retrieve the dimensions of the dataset - number of
genes (rows) and samples (columns) studied. Note that the commands
\code{\LinkA{nrow}{nrow}(x)}, \code{\LinkA{ncol}{ncol}(x)} and
commands related with matrix dimensions on also work.
\end{Details}
\begin{Value}
Vector with 2 numbers, the first one is the number of rows (genes) and the
second one the number of columns (samples).
\end{Value}
\begin{Author}\relax
modified from the \code{marray} package
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{dim}{dim}} in the base package.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Loading the dataset
data(gastro)

dim(gastro)
dim(gastro.raw)
dim(gastro.norm)
dim(gastro.summ)
\end{ExampleCode}
\end{Examples}

