\HeaderA{maDotsMatch}{Replace default arguments of a function by user supplied values}{maDotsMatch}
\keyword{misc}{maDotsMatch}
\begin{Description}\relax
This function may be used to replace default arguements for any
functions to user supplied parameters.
\end{Description}
\begin{Usage}
\begin{verbatim}
maDotsMatch(dots, defaults)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{dots}] List of user supplied argements, e.g. from \code{list(...)}.
\item[\code{defaults}] List of  formal arguments of a function, e.g. from the
function \code{\LinkA{formals}{formals}}.
\end{ldescription}
\end{Arguments}
\begin{Value}
\begin{ldescription}
\item[\code{args}] List of argument of a function.
\end{ldescription}
\end{Value}
\begin{Author}\relax
Jean Yee Hwa Yang
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{maDefaultPar}{maDefaultPar}}, \code{\LinkA{maDotsDefaults}{maDotsDefaults}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
dots<-list(x=1:10, y=11:20)
argsfun <- maDotsMatch(dots, formals(args(plot)))
do.call("plot", argsfun)
\end{ExampleCode}
\end{Examples}


