Skip to contents

Aggregates an epi_df object by the specified group columns, summing the value column, and returning an epi_df. If aggregating over geo_value, the resulting epi_df will have geo_value set to "total".

Usage

sum_groups_epi_df(.x, sum_cols = "value", group_cols = character())

Arguments

.x

an epi_df

sum_cols

character vector of the columns to aggregate

group_cols

character vector of column names to group by. "time_value" is included by default.

Value

an epi_df object