\HeaderA{aggregateExprs}{Aggregate expression data}{aggregateExprs}
\keyword{datasets}{aggregateExprs}
\begin{Description}\relax
This function removes duplicates row names from an expression set, summarizing them with a function of the users choice.
The "absMax" function located in package "reb" we have found to be useful.
\end{Description}
\begin{Usage}
\begin{verbatim}
aggregateExprs(x, package = "hgu133plus2", using = "ENTREZID", FUN, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] expression data - matrix, eSet, or ExpressionSet 
\item[\code{package}] annotation package of expression data 
\item[\code{using}] format type that gene IDs are converted to  
\item[\code{FUN}] function by which to summarize duplicated values 
\item[\code{...}] extra parameters passed on to FUN 
\end{ldescription}
\end{Arguments}
\begin{Value}
A matrix of expression data with the rows aggregated to a unique format chosen by the user.
The new identifiers of the returned matrix are those specified with the "using" argument.
To see possible values, use the ls() command illustrated below in the examples.
\end{Value}
\begin{Author}\relax
Kyle Furge <kyle.furge@vai.org> and Karl Dykema <karl.dykema@vai.org>
\end{Author}
\begin{Examples}
\begin{ExampleCode}
        if (require(hgu95av2) & require(annaffy)) {
                library(annaffy)
                data(aafExpr)
                class(exprs(aafExpr))
                exprs(aafExpr)[1:4, 1:4]

                #list possible values for the "using" argument
                ls(pos=which(search()=="package:hgu95av2"))

                convert <- aggregateExprs(exprs(aafExpr),"hgu95av2",FUN=mean,na.rm=TRUE)
                convert[1:4,1:4]
        }
\end{ExampleCode}
\end{Examples}

