Page 1 of 1

For this problem, we will work with the flights data set in the nycflights13 package. Install and load the nycflights13

Posted: Fri Jul 08, 2022 6:35 am
by answerhappygod
For This Problem We Will Work With The Flights Data Set In The Nycflights13 Package Install And Load The Nycflights13 1
For This Problem We Will Work With The Flights Data Set In The Nycflights13 Package Install And Load The Nycflights13 1 (177.96 KiB) Viewed 29 times
For this problem, we will work with the flights data set in the nycflights13 package. Install and load the nycflights13 package. Also make sure you load tidyverse in case you need it. library (nycflights13) library (tidyverse) 1. Provide a brief description of the data set and a few of the variables (use ?flights). Is flights a tibble? 2. Extract a tibble containing American Airlines (AA) flights to LAX that departed before 1030. Return only the columns month, day, dep_time, dest, and carrier. How many flights total fit these criteria? 3. Extract a tibble containing all flights on Christmas day; 12/25/2013. What is the total number of miles traveled across all flights on this day? 4. The air_time variable gives the duration of the flight in minutes. Create a tibble containing flights on Christmas day and only the variables month, day, origin, dest, and air_time_hour where the last variable gives the duration of the flight in hours. ## # A tibble: 719 x 5 ## ## ## 1 ## 2 ## 3 ## 4 ## 5 ## 6 ## 7 ## 8 ## 9 month day origin dest air_time_hour <int> <int> <chr> <chr> 25 EWR CLT 25 EWR IAH 25 JFK ΜΙΑ 25 JFK BQN 25 LGA ORD 25 LGA DTW 25 LGA ATL 25 LGA FLL 25 EWR FLL 12 12 12 12 12 12 222 <dbl> 1.63 3.38 2.43 3.18 2.05 1.47 1.97 2.45 2.48