Description Usage Arguments Details
A helper function to aggregate over dimensions
1 2 | aggregateGAData(ga_data, agg_names = NULL,
mean_regex = "^avg|Rate|^CPC$|^CTR$|Average|%| Per ")
|
ga_data |
A dataframe of data to aggregate |
agg_names |
The columns to aggregate over |
mean_regex |
The regex for column names to do mean() rather than sum() |
Will auto select metrics if they are numeric class columns.
Will auto perform mean aggregation it metric names match mean_regex
argument
If agg_names is NULL will aggregate over all
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.