On Wed, 11 Nov 2009 18:11:51 +0100 Karl Ove Hufthammer <k...@huftis.org> 
wrote:
> I wish cumsum took a 'na.rm' argument, though. It would make stuff like 
> this much easier.

Or, more specifically, a 'na.value', which could perhaps default to 
'NA' to get the current behaviour, but which one could set 0 for 
'cumsum', 1 for 'cumprod', Inf for 'cummin' and -Inf for 'cummax'.

-- 
Karl Ove Hufthammer

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to