dplyr adds cumall(), cumany(), and cummean() to complete R's set of cumulate functions to match the aggregation functions available in most databases
cumall()
cumany()
cummean()
cumall(x) cumany(x) cummean(x)
x
For cumall() and cumany(), a logical vector; for cummean() an integer or numeric vector