| cumulate {growthPheno} | R Documentation |
Calculates the cumulative sum, ignoring the first element if exclude.1st is TRUE
Description
Uses cumsum to calculate the cumulative sum, ignoring the first element
if exclude.1st is TRUE.
Usage
cumulate(x, exclude.1st = FALSE, na.rm = FALSE, ...)
Arguments
x |
A |
exclude.1st |
A |
na.rm |
A |
... |
allows passing of arguments to other functions; not used at present. |
Value
A vector containing the cumulative sum.
Author(s)
Chris Brien
See Also
Examples
data(exampleData)
PSA.cum <- cumulate(longi.dat$PSA)
[Package growthPheno version 2.1.25 Index]