mrollingRates function

function to compute a rolling fn (rate) of multiple quantities from TS data, eg. fatality and recovery rate

function to compute a rolling fn (rate) of multiple quantities from TS data, eg. fatality and recovery rate

mrollingRates(data = NULL, geo.loc = NULL, fn = mean, period)

Arguments

  • data: time series dataset to consider
  • geo.loc: country/region to analyze
  • fn: function to compute rolling
  • period: length of window