Learn R Programming

freegroup (version 1.1-6)

cumsum: Cumulative sum

Description

Cumulative sum of free vectors

Usage

# S3 method for free
cumsum(x)

Arguments

x

Vector of class free

Author

Robin K. S. Hankin

See Also

Examples

Run this code
abc(1:6)
cumsum(abc(1:6))

x <- rfree(10,2)
cumsum(c(x,-rev(x)))

Run the code above in your browser using DataLab