`cummean()` function from dplyr not providing results as expected
Just to close this question:
This was a bug in dplyr 1.0.0 which has been solved, see GitHub tidyverse/dplyr #5325.
This error does not encounter in dplyr version 1.0.2, currently on CRAN