Exercise 5.5.4
Another solution. Now that we know we can "trust" dep_delay we could simply
md <- flights %>%
select(carrier,flight,origin,dest,sched_dep_time,dep_time,dep_delay) %>%
arrange(min_rank(desc(dep_delay)))
There are no ties in the top 10.