cumsum: Cumulative Sums

View source: R/covid19.R

cumsumR Documentation

Cumulative Sums

Description

Returns a numeric object whose elements are the cumulative sums of the elements of the argument.

Usage

cumsum(x, na.rm = TRUE)

Arguments

x

a numeric object.

na.rm

logical. Should missing values be removed? Default FALSE.

Details

If na.rm=TRUE, then NA are treated as 0 when computing the cumulative sum.


covid19datahub/COVID19dev documentation built on March 16, 2023, 3:22 a.m.