function to compute a rolling fn of a TS data
rollingRate(data, fn = mean, period = NULL)
data
fn
period
a vector with rolling values
Useful links