Description Usage Arguments Details Value Missing values Author(s) See Also Examples
Calculates the median for each row in a matrix.
1 | rowMedians(x, na.rm=FALSE, ...)
|
x |
A |
na.rm |
If |
... |
Not use. |
The implementation of rowMedians()
is optimized for both speed and memory.
To avoid coercing to double
s (and hence memory
allocation), there is a special implementation for
integer
matrices. That is, if x
is an
integer
matrix
, then
rowMedians(as.double(x))
would require three times the memory
of rowMedians(x)
, but all this is avoided.
Returns a numeric
vector
of
length N.
Missing values are excluded before calculating the medians.
Henrik Bengtsson
See rowMeans()
in colSums
().
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.