Skip to content
Prev 201105 / 398503 Next

how to ignore NA when using cumsum?

Try this:

apply(proportion, 1, function(x)cumsum(na.exclude(x)))

On Sat, Nov 21, 2009 at 5:34 PM, Tracy Bowerman
<tracy.bowerman at aggiemail.usu.edu> wrote: