Calculate the mean, ignoring missing values:
Calculate the mean after deleting missing values:
R's mean() function with argument na.rm=TRUE: