Question: This question is a brief exercise in R. We are going to use the sample air quality data that is installed in R for this

This question is a brief exercise in R. We are going to use the sample air quality data that is installed in R for this problem. HINT: you can open this dataset with the command data(airquality).

Using this file and the R commands , answer the following questions. Make sure to both answer the questions below in the text box and also tell me what you did to get your answer in your R Script - that is, tell me which command you used, but more importantly, explain what you are doing with that command

1) How many variables are there in this dataset? HINT: Open the dataset in spreadsheet format, and don't forget to both write a command and explain what you did to find this information (e.g., where you looked on your screen) in your R Script using a comment! (5 points)

2) Name three (3) of the variables that are used in this dataset. (15 points, 5 points each). HINT: Open the dataset in spreadsheet format, and explain what you did to find this information (e.g., where you looked on your screen) in your R Script using a comment! (5 points)

3) How many observations (that is, how many *total* days of temperature data) do we have in this dataset? HINT: Open the dataset in spreadsheet format, and don't forget to both write a command and explain what you did to find this information (e.g., where you looked on your screen) in your R Script using a comment! (5 points)

4) Let's look at the variable Temp, which looks at the air temperature at LaGuardia Airport in New York City in degrees Fahrenheit for each day. What is the air temperature (in degrees Fahrenheit) on May 1 in the dataset? How about July 31? (5 points, 2.5 points each) HINT: Open the dataset in spreadsheet format, and explain what you did to find this information (e.g., where you looked on your screen) in your R Script using a comment! (5 points). Also make sure to capitalize the "T" in Temp when writing your command!

5) What is the mean temperature in this dataset? HINT: Make sure to capitalize the "T" in Temp! (10 points)

6) What about the median temperature? (10 points)

7) What is the range of temperatures? Make sure to tell me what both the minimum and maximum values are when answering this question (10 points; 5 points for min/max, 5 points for range)

8) What is the mode temperature? How many modes are there? (HINT: there can be more than one mode!) (10 points)

9) Submit your R Script

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!