rowMedians {miscTools} | R Documentation |
Medians of Rows
Description
Compute the sample medians of the rows of a data.frame or matrix.
Usage
rowMedians( x, na.rm = FALSE )
Arguments
x |
a data.frame or matrix. |
na.rm |
a logical value indicating whether |
Value
A vector of the medians of each row of x
.
Author(s)
Arne Henningsen
See Also
Examples
m <- matrix( 1:12, nrow = 4 )
rowMedians( m )
[Package miscTools version 0.6-28 Index]