library(dplyr)
::planes %>%
nycflights13group_by(manufacturer) %>%
summarise(num_planes = n()) %>%
arrange(desc(num_planes)) %>%
head(10)
# A tibble: 10 × 2
manufacturer num_planes
<chr> <int>
1 BOEING 1630
2 AIRBUS INDUSTRIE 400
3 BOMBARDIER INC 368
4 AIRBUS 336
5 EMBRAER 299
6 MCDONNELL DOUGLAS 120
7 MCDONNELL DOUGLAS AIRCRAFT CO 103
8 MCDONNELL DOUGLAS CORPORATION 14
9 CANADAIR 9
10 CESSNA 9