Learn R Programming

dRiftDM (version 0.3.1)

aggregate_stats: Aggregate Statistics Across ID

Description

aggregate_stats is a (not exported) function to aggregate stats_dm objects across IDs. Since the column names may vary by the statistic type, the behavior of aggregate depends on the subclass of stats_dm.

Usage

aggregate_stats(stat_df)

Value

Returns the statistics aggregated across the relevant cols.

Arguments

stat_df

A data.frame of class stats_dm (see new_stats_dm())

Details

aggregate_stats calls the internal_aggregate() with the relevant arguments

See Also

new_stats_dm, calc_stats, internal_aggregate()