median(x, na.rm=FALSE)
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.quantile
for general quantiles.median(1:4)# = 2.5 [even number] median(c(1:3,100,1000))# = 3 [odd, robust]