Skip to contents

Aggregate simulation results into age groups

Usage

aggregate_across_age_groups(df, breaks = c(20, 60))

Arguments

df

simulation output, data frame with columns scenario, time, var, age, and value, where age gives the lower bound of the original five-year age groups

breaks

lower bounds for new (aggregated) age groups

Value

data frame with new aggregated age_group column