Description Usage Arguments Value Examples
This function performs operations by grouping the data.
1 |
df |
The data set for which correlations are required |
my_formula |
A formula such as A~B where B is the grouping variable(normally a factor). See examples below |
func |
The kind of operation e.g sum,mean,min,max,manymodelr::get_mode |
... |
Other arguments to 'aggregate' see ?aggregate for details |
A grouped data.frame object with results of the chosen operation.
1 | head(agg_by_group(airquality,.~Month,sum))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.