group_size: Calculate group sizes.

Description Usage Arguments See Also Examples

Description

Calculate group sizes.

Usage

1
2
3

Arguments

x

a grouped tbl

See Also

Other grouping functions: group_by_all, group_by, group_indices, group_rows, groups

Examples

 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)
}

olascodgreat/samife documentation built on May 13, 2019, 6:11 p.m.