bully | R Documentation |
Average observations by group
bully(df, col, ..., name = "mean", na.rm = TRUE, sort = TRUE)
df |
a tibble to count |
col |
column to average |
... |
variables to group by |
name |
The output column name. If omitted, it will be mean. |
na.rm |
Whether to remove NA values |
sort |
if TRUE will sort in descending order of mean |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.