rowMedians | 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
colMedians
,median
,colMeans
.
m <- matrix( 1:12, nrow = 4 )
rowMedians( m )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.