dplyr (version 0.1)

n: The number of observations in the current group.

Description

This function is implemented special for each data source and can only be used from within summarise.

Usage

n()

Arguments

Examples

Run this code
if (require("hflights")) {
carriers <- group_by(hflights, UniqueCarrier)
summarise(carriers, n())
}

Run the code above in your browser using DataCamp Workspace