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

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