Learn R Programming

FunnelPlotR (version 0.5.0)

aggregate_func: Aggregation function for record-level data, prior to plot.

Description

Internal function to aggregate record-level data for plotting as a funnel.

Usage

aggregate_func(mod_plot)

Value

Returns an aggregated data.frame of the same columns, but summed by 'group', with a relative risk 'rr' column added.

Arguments

mod_plot

A data frame of values to be aggregated. Expected columns, 'group', 'numerator' and 'denominator'