Perhaps I'm missing something, but isn't the maximum of the cumulative sum simply the last value, ie. sum(x)?
Hadley ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
