cumsumDataframe: Cumulative sums for a data frame

View source: R/utils.R

cumsumDataframeR Documentation

Cumulative sums for a data frame

Description

Finds the cumulative sum of all columns in a data frame. Note that all columns must be numeric - date and datetime variables cannot be summed.

Usage

cumsumDataframe(df)

Arguments

df

Required. Data frame to be summed.

Value

Returns a dataframe containing the cumulative sums of all columns in the original data frame.

Note

This function is used by other CRHMr functions, so it does NO parameter testing.

Author(s)

Kevin Shook

See Also

cumulDailyWater

Examples

## Not run: 
cumul <- cumsumDataframe(modelOutput)
## End(Not run)

CentreForHydrology/CRHMr documentation built on April 6, 2024, 5:27 p.m.