Practice Examples 3
Task 0
Load dplyr and the flights data into R.
library(dplyr)
library(nycflights13)
## Error in library(nycflights13): there is no package called 'nycflights13'
data(flights)
## Warning in data(flights): data set 'flights' not found
Look at the description of flights data here
in the flights section.
Task 1
Get the plane tail number (tailnum) of the three planes which arrived with the largest
overall delay (arrival and departure as well) relative to the distance. Try to
accomplish this with one chain.
Task 2
From which airport fly the most planes to Boston?
Task 3
Which of the airports is associated with the largest departure delays on average? (Note: be careful with missing values, it is better to exclude them when calculating an average). Is this ordering the same for each month?