

   interaction {base}                           R Documentation

   CCoommppuuttee FFaaccttoorr IInntteerraaccttiioonnss

   DDeessccrriippttiioonn::

        `interaction' computes a factor which represents the
        interaction of the given factors.  The result of
        `interaction' is always unordered.

   UUssaaggee::

        interaction(..., drop=FALSE)

   AArrgguummeennttss::

        ...: The factors for which interaction is to be com-
             puted.

       drop: If `drop' is `TRUE', empty factor levels are
             dropped from the result. The default is to retain
             all factor levels.

   VVaalluuee::

        A factor which represents the interaction of the given
        factors.

   SSeeee AAllssoo::

        `factor'.

   EExxaammpplleess::

        a <- gl(2, 2, 8)
        b <- gl(2, 4, 8)
        interaction(a, b)

