Frequently we use summary statistics to briefly describe large data sets. Among the summary statistics available in R are: mean, median, max, and min. Most of these functions will return NA if there are any missing values in the data. To ignore missing values, you need to supply the option "na.rm=TRUE".
> mean(c(1,56,82,NA,105,7))
[1] NA
> mean(c(1,56,82,NA,105,7), na.rm=TRUE)
[1] 50.2