add_counts | R Documentation |
Add counts of multiple columns at once
add_counts(df, ...)
df |
the dataframe to work on |
... |
one or multiple column names to summarise by n() on |
a dataframe
Code originally written in R4DS-Channel by https://github.com/HannesOberreiter without testing for edge cases, modified for personal use by me
mtcars |> add_counts(cyl, vs, am)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.