cumsumNA: Computes the cummulative sum of a vector without propagating NAs
Description
Computes the cummulative sum of a vector without propagating NAs
Usage
cumsumNA(x)
Arguments
x
An integer or double vector
Value
The vector of cumulative sums.
Details
If x is integer, then integer addition is used. Otherwise, floating
point (double) addition is used. Elements in x that were NA will continue
to be NA, but the NA will not be propagated.