aggregate_to_weekly: Aggregate daily data to weekly data

View source: R/aggregate_to_weekly.R

aggregate_to_weeklyR Documentation

Aggregate daily data to weekly data

Description

If the last week is not complete, drop all observations from the previous Saturday in that week

Usage

aggregate_to_weekly(data)

Arguments

data

data.frame with columns model, location, target_variable, target_end_date and value

Value

data.frame with the same set of input columns and weekly aggregated data in value column


reichlab/covidHubUtils documentation built on Feb. 6, 2024, 1:42 p.m.