[R] any other fast method for median calculation

Zheng, Xin (NIH) [C] zhengxin at mail.nih.gov
Tue Apr 14 06:29:40 CEST 2009

Hi there,

I got a data frame with more than 200k columns. How could I get median of each column fast? mapply is the fastest function I know for that, it's not yet satisfied though. 

It seems function "median" in R calculates median by "sort" and "mean". I am wondering if there is another function with better algorithm.

Any hint?


Xin Zheng

More information about the R-help mailing list