This is very helpful. The very last question at 5.7.1 is not mentioned: 8. For each plane, count the number of flights before the first delay of greater than 1 hour. My approach is as follows (still learning). flights %>% group_by(tailnum) %>% arrange(year, month, day, dep_time) %>% summarize(nflights = min(which(dep_delay > 60)))
This is very helpful. The very last question at 5.7.1 is not mentioned: 8. For each plane, count the number of flights before the first delay of greater than 1 hour. My approach is as follows (still learning).
flights %>% group_by(tailnum) %>% arrange(year, month, day, dep_time) %>% summarize(nflights = min(which(dep_delay > 60)))