

   CCrreeaattee aa DDaattaa FFrraammee ffrroomm AAllll CCoommbbiinnaattiioonnss ooff FFaaccttoorrss

        expand.grid(...)

   AArrgguummeennttss::

        ...: Vectors, factors or a list containing these.

   DDeessccrriippttiioonn::

        Create a data frame from all combinations of the sup-
        plied vectors or factors. See the description of the
        return value for precise details of the way this is
        done.

   VVaalluuee::

        A data frame containing one row for each combination of
        the supplied factors. The first factors vary fastest.
        The columns are labelled by the factors if these are
        supplied as named arguments or named components of a
        list.

   AAuutthhoorr((ss))::

        B.D. Ripley

   EExxaammpplleess::

        expand.grid(height=seq(60,80,5), weight=seq(100,300,50),
                     sex=c("Male","Female"))

