add_counts: Add counts of multiple columns at once

View source: R/add_counts.R

add_countsR Documentation

Add counts of multiple columns at once

Description

Add counts of multiple columns at once

Usage

add_counts(df, ...)

Arguments

df

the dataframe to work on

...

one or multiple column names to summarise by n() on

Value

a dataframe

References

Code originally written in R4DS-Channel by https://github.com/HannesOberreiter without testing for edge cases, modified for personal use by me

Examples

mtcars |> add_counts(cyl, vs, am)

cathblatter/cblttr documentation built on May 22, 2024, 3:21 p.m.