Correct ranking for worst delays

Fixes #119
This commit is contained in:
hadley 2016-07-22 11:22:02 -05:00
parent 37058ce630
commit 825dacdaaa
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ Grouping is most useful in conjunction with `summarise()`, but you can also do c
```{r}
flights_sml %>%
group_by(year, month, day) %>%
filter(rank(arr_delay) < 10)
filter(rank(desc(arr_delay)) < 10)
```
* Find all groups bigger than a threshold: