Tutorial – looking at airline flight times data

This is a general tutorial aimed at finding interesting snippets of information from Flights data available in the nycflights13 package.

The dataset contains On-time data for all flights that departed NYC (i.e. JFK, LGA or EWR) in 2013 as per its description:

# First, install the package if you haven't already 
 
install.packages("nycflights13") 
library(nycflights13)library(data,table) 
 
flights <- data.table(nycflights13::flights) 
flights 
 
# Get descriptive information about the dataset 
describe(flights) 

The output of the preceding code is as follows:

 We can also get descriptive information on a ...

Get Hands-On Data Science with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.