Question
Which argument allows mean(x) to ignore missing values in R?
Select an option. Your answer will be checked instantly.
Correct Answer: A. na.rm = TRUE
Explanation:
Setting na.rm to TRUE removes NA values for the calculation.
Without it, a missing value usually causes mean() to return NA.
Leave a Reply