\Header{all.names}{Find All Names in an Expression}
\alias{all.vars}{all.names}
\keyword{programming}{all.names}
\begin{Description}\relax
Return a character vector containing all the names which occur in an
expression or call.\end{Description}
\begin{Usage}
\begin{verbatim}
all.names(expr, functions = TRUE, max.names = 200, unique = FALSE)

all.vars(expr, functions = FALSE, max.names = 200, unique = TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{expr}] an expression or call from which the names are to be
extracted.
\item[\code{functions}] a logical value indicating whether function names
should be included in the result.
\item[\code{max.names}] the maximum number of names to be returned.
\item[\code{unique}] a logical value which indicates whether duplicate names
should be removed from the value.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
These functions differ only in the default values for their
arguments.\end{Details}
\begin{Value}
A character vector with the extracted names.\end{Value}
\begin{Examples}
\begin{ExampleCode}
all.names(expression(sin(x+y)))
all.vars(expression(sin(x+y)))
\end{ExampleCode}
\end{Examples}

