\Header{mean}{Arithmetic Mean}
\alias{mean.default}{mean}
\keyword{univar}{mean}
\begin{Usage}
\begin{verbatim}
mean(x, trim=0, na.rm=FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x}] a numeric vector containing the values
whose mean is to be computed.
\item[\texttt{trim}] the fraction (0 to 0.5) of observations to be
trimmed from each end of \texttt{x} before the mean is computed.
\item[\texttt{na.rm}] a logical value indicating whether \texttt{NA}
values should be stripped before the computation proceeds.
\end{ldescription}
\end{Arguments}
\begin{Description}
Generic function for the (trimmed) arithmetic mean.
If \texttt{trim} is zero (the default),
the arithmetic mean of the values in \texttt{x} is computed.
If \texttt{trim} is non-zero, a symmetrically trimmed mean is computed
with a fraction of \texttt{trim} observations deleted from each end
before the mean is computed.

Missing values are ignored.\end{Description}
\begin{SeeAlso}
\texttt{\Link{weighted.mean}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
x <- c(0:10, 50)
xm <- mean(x)
c(xm, mean(x, trim = .10))
\end{ExampleCode}
\end{Examples}

