median computes the sample median of the vector of values given as its argument. If na.rm is TRUE then NA values are deleted before computation proceeds.
median
na.rm
TRUE
NA
median(x, na.rm=FALSE)