R has a built-in dataset called airquality thatcontains observations about Ozone,Solar.R, Wind,Temp, Month, andDay. Use this dataset to answer thefollowings:
- Count the number of observations in that dataset
- What is the type of this dataset? Is it avector, matrix,array, or data.frame object?
- Print a sample observation of this dataset to have an ideaabout dataset.
- How many variables are there in this dataset and what is thedata type of each variable?
- Display only observations that have Ozoneequals NA (Not Applicable)
- Store all observations of the month of June where temperatureexceeded 50 into june_airquality
- Display june_airquality ordered by Temp
Expert Answer
Answer to R has a built-in dataset called airquality that contains observations about Ozone, Solar.R, Wind, Temp, Month, and Day. …