Cumsum: Cumulative sum, dropping NAs

Description Usage Arguments Value

Description

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

1
Cumsum(x)

Arguments

x

a numeric vector containing the values to be cumulatively summed.

Value

A vector of length(x).


jmackie4/elpatron documentation built on May 19, 2019, 12:49 p.m.