Starter Code
# library(nycflights13)
# library(tidyverse)
Create the code makes a table for each of the below questions.
1. join + filter - Which airplanes fly LGA to XNA (1 POINT)
#flights %>%
# inner_join(planes, by = "tailnum") %>%
# filter(origin == "LGA", dest == "XNA") %>%
# select(tailnum) %>%
# distinct()
2. join - Add the airline name to the flights table (1 POINT)
#flights %>%
# inner_join(airlines, by = "carrier")
3. join + select + distinct() - Which airports have no commercial
flights (1 POINT)
#airports %>%
# anti_join(flights, by = c("faa" = "dest")) %>%
# anti_join(flights, by = c("faa" = "origin")) %>%
# select(faa) %>%
# distinct()