Description Usage Arguments Value Author(s) See Also Examples
Compute the sample medians of the rows of a data.frame or matrix.
1 | 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
1 2 | m <- matrix( 1:12, nrow = 4 )
rowMedians( m )
|
[1] 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.