aggregate_to_month: Compute Totals over a given time period (month)

View source: R/utils.R

aggregate_to_monthR Documentation

Compute Totals over a given time period (month)

Description

Compute Totals over a given time period (month)

Usage

aggregate_to_month(
  data,
  pd,
  by = c("AgeClass", "vaccination_status"),
  aggv,
  cumv
)

Arguments

data

data.frame data

pd

character period label to mutate in Week column

by

character vector of column names to group_by

aggv

character vector of columns that can be aggregated (daily record)

cumv

character vector of columns that are cumulative (daily record) and should not be aggregated


miraisolutions/covid19-vaccination-ch documentation built on March 1, 2024, 11:15 a.m.