bully: Average observations by group

View source: R/bully.R

bullyR Documentation

Average observations by group

Description

Average observations by group

Usage

bully(df, col, ..., name = "mean", na.rm = TRUE, sort = TRUE)

Arguments

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


scottfrechette/funcyfrech documentation built on Aug. 26, 2022, 9:13 a.m.