cumulate | R Documentation |
Uses cumsum
to calculate the cumulative sum, ignoring the first element
if exclude.1st is TRUE
.
cumulate(x, exclude.1st = FALSE, na.rm = FALSE, ...)
x |
A |
exclude.1st |
A |
na.rm |
A |
... |
allows passing of arguments to other functions; not used at present. |
A vector
containing the cumulative sum.
Chris Brien
cumsum
data(exampleData)
PSA.cum <- cumulate(longi.dat$PSA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.