CumsumNa: Calculate cumulative sum with forced NA=0.

Description Usage Arguments Value

Description

CumsumNa calculates a cumulative sum with NAs converted to 0s. Read a vector and calculate the cumulative sum with NAs converted to 0s.

Usage

1

Arguments

x

The vector of values.

Value

The cumulative sum vector.


NCAR/rwrfhydro documentation built on Feb. 28, 2021, 12:47 p.m.