Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The airquality data contains records on ozone, temperature, solar radiation, wind during May 1 to September 3 0 in 1 9 7 3 . The
The airquality data contains records on ozone, temperature, solar radiation, wind during May to September in The following is a description of the variables. o Ozone: Mean ozone in parts per billion from to hours at Roosevelt Islando Solar.R: Solar radiation in Langleys in the frequency band Angstroms from to hours at Central Parko Wind: Average wind speed in miles per hour at and hours at LaGuardia Airporto Temp: Maximum daily temperature in degrees Fahrenheit at La Guardia Airport.You can check the details of the airquality data. Section : write a R script to complete the following tasks on data cleaning and descriptive statistics: Set the R working directory on your computer. Import "airquality" data from any of the format: Rdata, csv or txt and name it as raw Change variable name "Solar.R to "SolarRadiation" Get mean ozone level for the following sample or subsamples.a the overall mean Ozone level for the entire sampleb. mean ozone level when Temp is no higher than langc. mean ozone level when Temp is higher than but below langd. mean ozone level when Temp is above lang but wind is no higher than miles per hour Create a histogram for Ozone level Calculate the variance and the standard deviation of Ozone Get a subsample of data with no missing value for Ozone variable using naomit function and name the new data as rawnoNA Feel free to copy, paste, and run the following code to your
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