n

0th

Percentile

The number of observations in the current group.

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

Usage
n()
Aliases
  • n
Examples
library(dplyr) if (require("nycflights13")) { carriers <- group_by(flights, carrier) summarise(carriers, n()) mutate(carriers, n = n()) filter(carriers, n() < 100) }
Documentation reproduced from package dplyr, version 0.5.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.