dplyr (version 0.1)

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
if (require("hflights")) {
group_size(group_by(hflights, Year, Month, DayofMonth))
group_size(group_by(hflights, Dest))
}

Run the code above in your browser using DataCamp Workspace