[R] Fast ave for sorted data?

Zhou Fang zhou.zfang at gmail.com
Sun Feb 15 20:26:51 CET 2009

Thanks! That does exactly what I want. (Heck, maybe this should be
included as a default sorted alternative to ave.)

I was thinking of doing it another way using cumsums, but maybe this
method is faster.


More information about the R-help mailing list