cumsum_reset | R Documentation |
reset
value is
found.Perform a cumulative sum resetting to zero whenever a reset
value is
found.
cumsum_reset(x, reset = NA)
x |
The vector to sum over |
reset |
The value when found in |
A vector the same length as x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.