\Header{mapply}{Apply a function to multiple list or vector arguments}
\keyword{manip}{mapply}
\keyword{utilities}{mapply}
\begin{Description}\relax
A multivariate version of \code{\Link{sapply}}.
\code{mapply} applies \code{FUN} to the first elements of each \dots
argument, the second elements, the third elements, and so on.
Arguments are recycled if necessary.\end{Description}
\begin{Usage}
\begin{verbatim}
mapply(FUN, ..., MoreArgs = NULL, SIMPLIFY = TRUE, USE.NAMES = TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{FUN}] Function to apply 
\item[\code{...}] Arguments to vectorise over (list or vector) 
\item[\code{MoreArgs}] A list of other arguments to \code{FUN} 
\item[\code{SIMPLIFY}] Attempt to reduce the result to a vector or matrix? 
\item[\code{USE.NAMES}] If the first \dots argument is character and the
result doesn't already have names, use it as the names
\end{ldescription}
\end{Arguments}
\begin{Value}
A list, vector, or matrix.\end{Value}
\begin{SeeAlso}\relax
\code{\Link{sapply}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
 mapply(rep, 1:4, 4:1)

 mapply(rep, times=1:4, x=4:1)

 mapply(rep, times=1:4, MoreArgs=list(x=42))

\end{ExampleCode}
\end{Examples}

