An Rcpp implementation of cumsum that quietly discards
NAs. If an NA is encountered, the previous value is assumed. Also note
that the first value in x should not be NA.
Usage
Cumsum(x)
Arguments
x
a numeric vector containing the values to be cumulatively summed.