powered by
This function performs operations by grouping the data.
agg_by_group(data_set = NULL, my_formula = NULL, func = NULL, ...)
A grouped data.frame object with results of the chosen operation.
The data set for which correlations are required
A formula such as A~B where B is the grouping variable(normally a factor). See examples below
The kind of operation e.g sum,mean,min,max,manymodelr::get_mode
Other arguments to 'aggregate' see ?aggregate for details
head(agg_by_group(airquality,.~Month,sum))
Run the code above in your browser using DataLab