dplyr (version 0.2)

group_size: Calculate the size of each group

Description

Calculate the size of each group

Usage

group_size(x)

Arguments

x
a grouped tbl

Examples

Run this code
data("hflights", package = "hflights")
group_size(group_by(hflights, Year, Month, DayofMonth))
group_size(group_by(hflights, Dest))

Run the code above in your browser using DataLab