\HeaderA{mergeArray}{Merge Codelink Bioarrays Data}{mergeArray}
\keyword{documentation}{mergeArray}
\keyword{utilities}{mergeArray}
\begin{Description}\relax
Merge data in a Codelink Object corresponding to same samples. Need a vector
indicating the classes and an optional vector indicating the labels of the mer-
ged samples.
\end{Description}
\begin{Usage}
\begin{verbatim}
  mergeArray(object, class, names=NULL, method="mean",
             log.it=FALSE, merge.snr=TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] an object of class "Codelink".
\item[\code{class}] a numeric vector indicating the classes.
\item[\code{names}] an optional character vector indicating labels for each class.
\item[\code{method}] the method used to summarize. Currently only "mean" supported.
\item[\code{log.it}] logical; a logical indicating if log2 values should be returned.
\item[\code{merge.snr}] logical; a logical indicating if SNR values should be merged.
\end{ldescription}
\end{Arguments}
\begin{Value}
An object of class "Codelink".
\end{Value}
\begin{Author}\relax
Diego Diez
\end{Author}
\begin{Examples}
\begin{ExampleCode}
## Not run: 
        data(codelink.example)
        codelink.example <- bkgdCorrect(codelink.example)
        codelink.example <- normalize(codelink.example, log.it = FALSE)
        codelink.example <- mergeArray(codelink.example, class = c(1,1),
                                        names = "SAMPLE", log.it = TRUE)
## End(Not run)
\end{ExampleCode}
\end{Examples}

