Answered step by step
Verified Expert Solution
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:
- Display the first 6 rows of the airquality data set.
- 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.
- Construct a boxplot for the Ozone and Solar.R variables, then display the values of all the outliers which lie beyond the whiskers.
- 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.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started