cumulative: Cumulative Wrapper

View source: R/cumulative.R

cumulativeR Documentation

Cumulative Wrapper

Description

Returns cumulative vector values of neighboring vector elements.

Usage

cumulative(x)

Arguments

x

A numeric vector.

Value

A list containing:

cum_min

The cumulative minima of the elements of x

cum_max

The cumulative maxima of the elements of x

sum

The sum of the elements of x

cum_sum

The cumulative sum of the elements of x

prod

The product of the elements of x

cum_prod

The cumulative product of the elements of x

Author(s)

Stu Field

See Also

cumsum(), cumprod()

Examples

## Not run: 
?cumsum

## End(Not run)
cumulative(1:10)

stufield/stuRpkg documentation built on April 2, 2022, 2:05 p.m.