\Header{median}{Median Value}
\keyword{univar}{median}
\keyword{robust}{median}
\begin{Description}\relax
Compute the sample median of the vector of values given as its argument.
\end{Description}
\begin{Usage}
\begin{verbatim}
median(x, na.rm=FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a numeric vector containing the values
whose median is to be computed.
\item[\code{na.rm}] a logical value indicating whether \code{NA}
values should be stripped before the computation proceeds.
\end{ldescription}
\end{Arguments}
\begin{References}\relax
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
\emph{The New S Language}.
Wadsworth \& Brooks/Cole.
\end{References}
\begin{SeeAlso}\relax
\code{\Link{quantile}} for general quantiles.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
median(1:4)# = 2.5 [even number]
median(c(1:3,100,1000))# = 3 [odd, robust]
\end{ExampleCode}
\end{Examples}

