There are times when we may want to look at #cumulative #statistics such as #cumsum or #cummean etc.
With my #r #package {TidyDensity} there are several functions build in that can help, one such is chmean() which will calculate the cumulative harmonic mean of a given #numeric #vector
This is a #vectorized #function which works quickly.
Here is a link to the post: https://www.spsanderson.com/steveondata/posts/rtip-2022-11-16/
#function #vectorized #vector #numeric #package #r #cummean #cumsum #statistics #cumulative