Description Usage Arguments See Also Examples
Calculate group sizes.
1 2 3 | group_size(x)
n_groups(x)
|
x |
a grouped tbl |
Other grouping functions: group_by_all
,
group_by
, group_indices
,
group_rows
, groups
1 2 3 4 5 6 7 8 9 10 | if (require("nycflights13")) {
by_day <- flights %>% group_by(year, month, day)
n_groups(by_day)
group_size(by_day)
by_dest <- flights %>% group_by(dest)
n_groups(by_dest)
group_size(by_dest)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.