powered by
cummean(x)
x
NA
cumhmean
cumgmean
cummedian
cummean(c(9, 1, 4, 0, 3, NA, 8, 5))
Run the code above in your browser using DataLab