powered by
This function is implemented specifically for each data source and can only be used from within summarise(), mutate() and filter().
summarise()
mutate()
filter()
n()
# NOT RUN { if (require("nycflights13")) { carriers <- group_by(flights, carrier) summarise(carriers, n()) mutate(carriers, n = n()) filter(carriers, n() < 100) } # }
Run the code above in your browser using DataLab