The as.array for data frames
takes all factors in a data frame and uses them
to define the dimensions of the resulting array,
and fills the array with the values of
the remaining numeric variables.
Currently, the data frame must contain all
combinations of factor levels.
Usage
## S3 method for class 'data.frame':
as.array(x,data.name=NULL,\dots)
Arguments
x
a data frame
data.name
a character string, giving the name
attached to the dimension
that corresponds to the
numerical variables in the data frame
(that is, the name attached to
the corresponding element of the
dimnames list).