[R] partial cumsum

Karl Ove Hufthammer karl at huftis.org
Wed Nov 11 18:20:26 CET 2009


On Wed, 11 Nov 2009 18:11:51 +0100 Karl Ove Hufthammer <karl at 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




More information about the R-help mailing list