[R] Generalized cumsum?

OKB (not okblacke) brenbarn at brenbarn.net
Wed Sep 16 23:09:34 CEST 2009


baptiste auguie wrote:

> ?Reduce
> 
> maybe

    	No, Reduce reduces an entire vector to a single value by repeatedly 
combining adjacent elements.  I'm looking to convert a vector to another 
vector where each element is some arbitrary aggregating function applied 
to the first n elements of the vector.

Thanks,
-- 
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead.  Go, instead, where there is
no path, and leave a trail."
	--author unknown




More information about the R-help mailing list