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

`colMedians`

,`median`

,`colMeans`

.

1 2 | ```
m <- matrix( 1:12, nrow = 4 )
rowMedians( m )
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.