reset
cumsum_reset.Rd
Perform a cumulative sum resetting to zero whenever a reset value is found.
cumsum_reset(x, reset = NA)
The vector to sum over
The value when found in x to reset the sum to zero at. (Note that the value at x %in% reset is zero.
x
x %in% reset
A vector the same length as x