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()

4. EXTRA CREDIT - (2 POINT2) - NO HELP - NO PARTIAL CREDIT

Create a table with the names of the airports with the most winds (wind_speed > 30). The table must contain only the airport name (airports$name) and no duplicate rows

# weather %>%
#  filter(wind_speed > 30) %>%
#  inner_join(airports, by = c("origin" = "faa")) %>%
#  select(name) %>%
#  distinct()