[R] function for rowMedian?

Liaw, Andy andy_liaw at merck.com
Fri Jan 20 16:40:03 CET 2006


apply(x, 1, median) should do it.  If not, you need to explain why.

Andy

-----Original Message-----
From: Max Kauer
Sent: Friday, January 20, 2006 10:24 AM
To: r-help at stat.math.ethz.ch
Subject: [R] function for rowMedian?


Hi
is anybody aware of a function to calculate a the median for specified
columns in a dataframe or matrix - so analogous to rowMeans?
Thanks
Max

--

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list