.BG
.FN array
.FN is.array
.FN as.array
.TL
Multi-way Arrays
.CS
array(data, dim=length(data), dimnames)
is.array(x)
as.array(x)
.AG data
vector containing the data values for the array in
the normal array order: the first subscript varies most
rapidly.  Missing values (`NA's) are allowed.
.AG dim
vector giving the extent for each dimension\(emthe `dim' attribute
of the array.
.AG dimnames
list giving initial dimnames for the array.
.PP
.AG x
any S object.
.RT
`array' returns an array with the same mode as `data', dimensionality
described by `dim', and optional `dimnames' attribute.
If `data' does not completely fill the
array, it is repeated until the array is filled.
.PP
`is.array' returns `TRUE' if `x' is an array object, `FALSE' otherwise.
.PP
`as.array' returns `x', if `x' is an array, otherwise a 1-dimensional
array with data from
`x' and `dim' attribute equal to `length(x)'.
.PP
The array class of objects are those that have an attribute `dim',
a vector of integers whose product equals the length of `data'.
An array may also have an attribute
`dimnames'.  If so, this is a list of `length(dim)' elements, each of which
is either of length zero or else a character vector that
gives the labels corresponding to the
levels of the corresponding subscript in the array.
.EX
myiris <- array(scan("irisfile"),c(4,3,50))
          # creates a 4 by 3 by 50 array
.KW classes
.KW array
.WR
