

   array {base}                                 R Documentation

   MMuullttii--wwaayy AArrrraayyss

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

        array(x, dim=length(x), dimnames=NULL)

        as.array(x)
        is.array(x)

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

        An array with the extents specified in `dim' and naming
        information in `dimnames'.  The values in `x' are taken
        to be those in the array with the leftmost subscript
        moving fastest.  If there are too few elements in `x'
        to fill the array, then the elements in `x' are recy-
        cled.

        `as.array()' coerces its argument to be an array by
        attaching a `dim' attribute to it.  It also attaches
        `dimnames' if `x' has `names'

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

        `aperm', `matrix'.

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

        dim(as.array(letters))

