Tutorial 9
Tutorial 9
flights data set in the nycflights13 package contains on-time data for all flights that departed NYC in 2013. The
description of columns found in flights data set is given below. Use this dataset and dplyr package to find
answers for the following questions:
1. Find all flights that had an arrival delay of three or more hours.
2. Find all flights that arrived more than three hours late but didn’t leave late.
3. Find all flights that were delayed by at least an hour but made up over 50 minutes in flight.
4. Find all flights that departed between midnight and 5am.
5. Find the most delayed flights.
6. Find the flights travelled the farthest. Hint: use air_time column.
7. Find the flights travelled the shortest.
8. Show the following details for each flight: flight number, origin and destination.
9. Show the following details for each flight travelled in June 2013: flight number, Origin and
destination.
10. Find the carrier that has the maximum departure delay on 1st January 2013.