Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz 4 R Training March 2024 (Flights data)

Total questions: 5

Worksheet time: 3mins

Name
Class
Date
1.
Which airline carrier has the highest number of flight information in this "flights" data? (Hint: Essentially you would like to find the total number of flight information in each row for each airline carrier. Therefore a "group_by(carrier)" will be needed in your code. To count the number of observations you can use "n()". To find the carrier name from the two digit codes, type "airlines" in console and press enter. You will find the name of the corresponding airline carrier from two digit code.)
a)
JetBlue Airways
b)
United Airlines
c)
American Airlines
d)
US Airways Inc.
e)
None of the above
2.
Which of the following airlines carrier has the longest arrival delay on the average ? (Hint: You will have to find the mean value of arrival delay variable. Please note that if any variable contains missing variable then simply mean(arr_delay) will not work. You will have to remove the missing values first with "mean(arr_delay, na.rm=T)". Note the use of additional argument "na.rm". It means "na" which stands for "missing" data and these data are removed ("rm"). This is also true for other summary functions such as max, min, median etc )
a)
Hawaiian Airlines Inc.
b)
Delta Air Lines Inc.
c)
US Airways Inc.
d)
Frontier Airlines Inc.
e)
None of the above
3.
Suppose we are trying to find those flight information where planes arrived at least 10 minutes late but departed on time or earlier. To which carrier these type flight information most belong? (Hint: You need to first filter out the data and then summarize with n( ) ) )
a)
Delta Airways
b)
American Airlines
c)
US Airways Inc.
d)
JetBlue Airways
e)
None of the above
4.
Which airline carrier has covered the 3rd most distance on the average? (Hint: use "distance" variable)
a)
JetBlue Airways
b)
Delta Air Lines Inc.
c)
Alaska Airlines Inc.
d)
Hawaiian Airlines Inc.
e)
None of the above
5.
Which plane identified by the tail number of the plane recorded the highest air time? (Hint: you need to use the "tailnum" variable along with "air_time" variable.)
a)
N66077
b)
N77066
c)
M77066
d)
N70766
e)
None of the above