rowMedians {miscTools} | R Documentation |
Compute the sample medians of the rows of a data.frame or matrix.
rowMedians( x, na.rm = FALSE )
x |
a data.frame or matrix. |
na.rm |
a logical value indicating whether |
A vector of the medians of each row of x
.
Arne Henningsen
m <- matrix( 1:12, nrow = 4 ) rowMedians( m )