wkagg: Aggregate model output to weekly resolution

Description Usage Arguments

View source: R/util.R

Description

Compute the sum or average of the daily output from the model, for weeks ending on dates specified in the output. Aggregation will be performed only for the requested columns; other columns will have their values at the specified dates copied over unmodified.

Usage

1
wkagg(weekending, df, cols, aggfun = mean, nday = 7)

Arguments

weekending

End dates for the weeks being calculated.

df

Dataset to operate on

cols

Columns to aggregate

aggfun

Function to aggregate with (default is mean)

nday

Number of days in the "week". Default is 7


rplzzz/CovMitigation documentation built on June 7, 2021, 8:48 a.m.