group_size

0th

Percentile

Calculate group sizes.

Calculate group sizes.

Usage
group_size(x)

n_groups(x)

Arguments
x
a grouped tbl
Aliases
  • group_size
  • n_groups
Examples
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)
}
Documentation reproduced from package dplyr, version 0.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.