[R] Running sum

Marc Schwartz MSchwartz at MedAnalytics.com
Sat Nov 20 01:16:03 CET 2004


On Fri, 2004-11-19 at 18:00 -0600, Douglas Bates wrote:

> I have forgotten the details of the original question but it seems to me 
> that if the elements of x could be both positive and negative then the 
> maximum of the cumulative sum doesn't have to be the last sum.

On Fri, 2004-11-19 at 20:00 -0400, Kjetil Brinchmann Halvorsen wrote:

> Please, Please, please, ... was it ever said that the numbers was only 
> positive?


Thanks to both Doug and Kjetil.

I stand corrected.

Marc




More information about the R-help mailing list