colMedians {micEcon} | R Documentation |
Compute the sample medians of the columns or rows of a data.frame or matrix.
colMedians( x, na.rm = FALSE ) rowMedians( x, na.rm = FALSE )
x |
a data.frame or matrix. |
na.rm |
a logical value indicating whether NA values should be
stripped before the computation proceeds. |
A vector of the medians of each column or row of x
.
Arne Henningsen
data( "germanFarms" ) colMedians( germanFarms[ , -1 ] )