Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 14 (1 point) 1) Listen ? Consider the data frame airquality. How do you extract the values of the column Solar.R for the subset
Question 14 (1 point) 1) Listen ? Consider the data frame airquality. How do you extract the values of the column Solar.R for the subset of rows where Ozone values are above 31 and Temp values are above 90. sub = subset(airquality, Ozone > 31 & Temp > 90) sub = subset(airquality, Ozone > 31 & Temp > 90, select = Solar.R) sub = subset(airquality, Ozone > 31 | Temp > 90, select = Solar.R) Question 13 (1 point) 1) Listen We want to calculate the mean of the Ozone column in the dataset 'airquality! We want to exclude missing values (coded as NA) from this calculation. Which code does this? sub = subset(airquality, lis.na(Ozone), select = Ozone); mean(sub, 2, apply) mean(airquality$Ozone), notmissing) sub = subset(airquality, !is.na(Ozone), select = Ozone); apply(sub, 2, mean) Question 12 (1 point) Saved Listen ? Suppose I have a vector x = 11) = 11]
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