cumulate

0th

Percentile

Calculates the cumulative sum, ignoring the first element if exclude.1st is TRUE

Uses cumsum to calculate the cumulative sum, ignoring the first element if exclude.1st is TRUE.

Keywords
manip, data
Usage
cumulate(x, exclude.1st = FALSE)
Arguments
x

A vector containing the values to be cumulated.

exclude.1st

A logical indicating whether or not the first value of the cumulative sum is to be NA.

Value

A vector containing the cumulative sum.

See Also

cumsum

Aliases
  • cumulate
Examples
# NOT RUN {
data(exampleData)
Area.cum <- cumulate(longi.dat$Area)
# }
Documentation reproduced from package growthPheno, version 1.0-13, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.