This function is a 'wrapper' for the group_by and summarize procedure used in dplyr to aggregate dataframes.
agg_data(data, col = "atoutput", groups, out = "atoutput", fun) agg_perc(data, col = "atoutput", groups, out = "atoutput") group_data(data, groups)
data | Dataframe the aggregation is applied to. |
---|---|
col | Column of the dataframe the summarise function is applied.
Default is |
groups | Vector of character strings giving the grouping variables. |
out | Character string specifying the name of the output column.
Default is |
fun | Aggregation function to apply. |
grouped datarame with the aggregated data.
#> Warning: `summarise_()` was deprecated in dplyr 0.7.0. #> Please use `summarise()` instead.#> Warning: `group_by_()` was deprecated in dplyr 0.7.0. #> Please use `group_by()` instead. #> See vignette('programming') for more help