wn file in Rstudios For all questions you should load tidyverse and nycflights13.  You should not need to use any other libraries.  If the tidyverse package is not installed, you’ll need to do a one-time installation from the Console Window in RStudio like this: install.packages("tidyverse") If the nycflights13 package is not installed, you’ll need to do a one-time installation from the Console Window in RStudio like this:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

nycflights13

For this assignment, you must name your R file nycflights13.R

*****use Rmarkdown file in Rstudios

  • For all questions you should load tidyverse and nycflights13.  You should not need to use any other libraries. 
    • If the tidyverse package is not installed, you’ll need to do a one-time installation from the Console Window in RStudio like this:
      install.packages("tidyverse")
    • If the nycflights13 package is not installed, you’ll need to do a one-time installation from the Console Window in RStudio like this:
      install.packages("nycflights13")
    • Load tidyverse with: suppressPackageStartupMessages(library(tidyverse))
    • Load nycflights13 with:
      suppressPackageStartupMessages(library(nycflights13))
    • The actual data set is called flights.
      See the nycflights13 package page and chapter 5 from the textbook for more info.
    • You can not attempt to install packages in CodeGrade. 
  • Round all float/dbl values to two decimal places.
    • If your rounding does not work the way you expect, convert the tibble to a dataframe by using as.data.frame()
  • All statistics should be run with variables in the order I state
    • E.g., “Run a regression predicting mileage from mpg, make, and type” would be:

lm(mileage ~ mpg + make + type...)

 

Before attempting to answer these, or if you lose points upon an attempt, please review all CodeGrade information provided in the CodeGrade overview submodule - if you do not you are likely to lose points. 

 

  1. (1)What is the mean distance of flights for each of the carriers AA, EV, and FL?
  • This answer should be assigned to Q1.

 

  1. (2)For the month with the highest number of flights, what is that value? Hint: use head(1).
  • This answer should be assigned to Q2.

 

  1. (3)Find the five shortest minimum distances, called min_dist, by origin/destination combination.  
  • This answer should be assigned to Q3 and appear like this:

  origin  dest  min_dist
  <chr>   <chr>    <dbl>
1 [value] [value]  [value]
2 [value] [value]  [value]
3 [value] [value]  [value]
4 [value] [value]  [value]
5 [value] [value]  [value]

 

  1. (4)What five days of the year had the highest mean distance when leaving from JFK?  Sort in descending order.
  • The answer should be assigned to Q4 and appear like this:

    month   day      mean_distance
1   [value] [value]        [value]
2   [value] [value]        [value]
3   [value] [value]        [value]
4   [value] [value]        [value]
5   [value] [value]        [value]



  1. (5)Calculate the maximum arrival delay for flights to Boston and Atlanta, separately.
  • The answer should be assigned to Q5 and appear like this:

  dest  max_arr_delay
  <chr>         <dbl>
1 [value]     [value]
2 [value]     [value]

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Stack operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY