count_groups | R Documentation |
I tend to forget the syntax that works with
stats::aggregate
.
count_groups(x, ...)
x |
A |
... |
Columns in |
A data.frame
with the counts per groups.
Other statistics:
column_sums()
,
relative_difference()
,
round_half_away_from_zero()
,
weighted_variance()
count_groups(mtcars, "am", "gear")
RUnit::checkEquals(dplyr::count(mtcars, am, gear),
count_groups(mtcars, "am", "gear"), checkNames = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.