sum_groups_epi_df: Aggregate an 'epi_df' object

View source: R/methods-epi_df.R

sum_groups_epi_dfR Documentation

Aggregate an epi_df object

Description

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


cmu-delphi/epiprocess documentation built on Oct. 29, 2024, 5:37 p.m.