\Header{interaction}{Compute Factor Interactions}
\keyword{category}{interaction}
\begin{Description}\relax
\code{interaction} computes a factor which represents the interaction
of the given factors.  The result of \code{interaction} is always unordered.\end{Description}
\begin{Usage}
\begin{verbatim}
interaction(..., drop = FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{...}] The factors for which interaction is to be computed, or a
single list giving those factors.
\item[\code{drop}] If \code{drop} is \code{TRUE}, empty factor levels
are dropped from the result. The default is to retain all
factor levels.
\end{ldescription}
\end{Arguments}
\begin{Value}
A factor which represents the interaction of the given factors.\end{Value}
\begin{References}\relax
Chambers, J. M. and Hastie, T. J. (1992)
\emph{Statistical Models in S}.
Wadsworth \& Brooks/Cole.\end{References}
\begin{SeeAlso}\relax
\code{\Link{factor}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
a <- gl(2, 2, 8)
b <- gl(2, 4, 8)
interaction(a, b)
\end{ExampleCode}
\end{Examples}

