Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use R Language. The airquality dataset contains daily air quality measurements. The variables include Ozone level, Solar radiation, wind speed, temperature in Fahrenheit, month, and

Use R Language.

The airquality dataset contains daily air quality measurements. The variables include Ozone level, Solar radiation, wind speed, temperature in Fahrenheit, month, and day. Please see the detailed description using help("airquality") in R.

Install the airquality data set on your computer using the command install.packages("datasets"). Then load the datasets package into your session to do the following:

  1. Display the first 6 rows of the airquality data set.
  2. Compute the average of the first four variables (Ozone, Solar.R, Wind and Temp) using the sapply() function. Hint: You might need to consider removing the NA values; otherwise, the average will not be computed.
  3. Construct a boxplot for the Ozone and Solar.R variables, then display the values of all the outliers which lie beyond the whiskers.
  4. Compute the upper quartile of the Ozone variable with two different methods. HINT: Only show the upper quartile using indexing. For the type of quartile, please see https://www.rdocumentation.org/packages/stats/versions/3.6.2/topics/quantile.
  5. Construct a pie chart to describe the number of entries by Month. HINT: use the table() function to count and tabulate the number of entries within a Month.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graphical Approach To Precalculus With Limits A Unit Circle Approach, A

Authors: John E Hornsby, Margaret L Lial, Gary K Rockswold

5th Edition

0321899806, 9780321899804

More Books

Students also viewed these Mathematics questions