\HeaderA{rowQ}{A function to compute empirical row quantiles.}{rowQ}
\aliasA{rowMax}{rowQ}{rowMax}
\aliasA{rowMin}{rowQ}{rowMin}
\aliasA{rowQ,ExpressionSet,numeric-method}{rowQ}{rowQ,ExpressionSet,numeric.Rdash.method}
\aliasA{rowQ,exprSet,numeric-method}{rowQ}{rowQ,exprSet,numeric.Rdash.method}
\aliasA{rowQ,matrix,numeric-method}{rowQ}{rowQ,matrix,numeric.Rdash.method}
\keyword{manip}{rowQ}
\begin{Description}\relax
This function computes the requested quantile for each row of a matrix,
or of an \code{exprSet}.
\end{Description}
\begin{Usage}
\begin{verbatim}
rowQ(imat, which)
rowMax(imat)
rowMin(imat)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{imat}] Either a matrix or an \code{exprSet}. 
\item[\code{which}] An integer indicating which order statistic should be returned.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\code{rowMax}, \code{rowMin} and \code{rowMedians} simply call \code{rowQ}
with the appropriate argument set. 

The argument \code{which} takes values between 1, for the minimum per row,
and \code{ncol(imat)}, for the maximum per row.
\end{Details}
\begin{Value}
A vector of length equal to the number of rows of the input matrix containing
the requested quantiles.
\end{Value}
\begin{Author}\relax
R. Gentleman
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{rowMedians}{rowMedians}}.
\code{rowMeans()} in \code{\LinkA{colSums}{colSums}}().
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
 data(sample.exprSet)
 rowMin(sample.exprSet)
 rowQ(sample.exprSet, 4)
\end{ExampleCode}
\end{Examples}

