What is the output of mean(c(2, 4, 6))?
a) 4
b) 6
c) 2
d) 5
Answer:
a) 4
Explanation:
The mean() function calculates the average of a numeric vector. The mean of c(2, 4, 6) is 4.
mean(c(2, 4, 6))?mean(c(2, 4, 6))?The mean() function calculates the average of a numeric vector. The mean of c(2, 4, 6) is 4.