View source: R/rowOrderStats.R
rowOrderStats | R Documentation |
Gets an order statistic for each row (column) in a matrix.
rowOrderStats(x, rows = NULL, cols = NULL, which, dim. = dim(x), ...,
useNames = TRUE)
colOrderStats(x, rows = NULL, cols = NULL, which, dim. = dim(x), ...,
useNames = TRUE)
x |
An NxK |
rows |
A |
cols |
A |
which |
An |
dim. |
An |
... |
Not used. |
useNames |
If |
The implementation of rowOrderStats()
is optimized for both speed and
memory. To avoid coercing to double
s (and hence memory
allocation), there is a unique implementation for
integer
matrices.
Returns a numeric
vector
of
length N (K).
This method does not handle missing values,
that is, the result corresponds to having na.rm = FALSE
(if such an
argument would be available).
The native implementation of rowOrderStats()
was adopted by
Henrik Bengtsson from Robert Gentleman's rowQ()
in the Biobase
package.
See rowMeans()
in colSums
().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.