Steven P. Sanderson provides an overview of an R package:
If you’re looking for an easy-to-use package to calculate cumulative statistics in R, you may want to check out the TidyDensity package. This package offers several functions to calculate cumulative measurements, including mean, median, standard deviation, variance, skewness, kurtosis, harmonic mean, and geometric mean.
Click through for a quick description of each function, as well as examples of each. H/T R-Bloggers.