what is the output of mean(c(1,2,NA), na.rm =TRUE) ?
1.5 because if the parameter na.rm = TRUE, then the missing values will be disregarded.