Intermediate R
Q53 / 100

What does "na.rm = TRUE" do when passed to functions like mean() or sum()?

Correct! Well done.

Incorrect.

The correct answer is B) It excludes NA values from the calculation, so they do not cause the result to be NA

B

Correct Answer

It excludes NA values from the calculation, so they do not cause the result to be NA

Explanation

Without na.rm = TRUE, the presence of any NA in the input causes functions like sum() or mean() to return NA; setting it to TRUE ignores NAs during computation.

Progress
53/100