\HeaderA{all.names}{Find All Names in an Expression}{all.names}
\aliasA{all.vars}{all.names}{all.vars}
\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 = -1L, unique = FALSE)

all.vars(expr, functions = FALSE, max.names = -1L, 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.  \code{-1}
indicates no limit (other than vector size limits).
\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}

