\Header{array}{Multi-way Arrays}
\alias{as.array}{array}
\alias{is.array}{array}
\keyword{array}{array}
\begin{Usage}
\begin{verbatim}
array(x, dim=length(x), dimnames=NULL)

as.array(x)
is.array(x)
\end{verbatim}
\end{Usage}
\begin{Value}
An array with the extents specified in \texttt{dim}
and naming information in \texttt{dimnames}.
The values in \texttt{x} are taken to be those in the array with the
leftmost subscript moving fastest.  If there are too few elements
in \texttt{x} to fill the array, then the elements in \texttt{x} are
recycled.

\texttt{as.array()} coerces its argument to be an array by attaching a
\texttt{\Link{dim}} attribute to it.  It also attaches \texttt{\Link{dimnames}} if
\texttt{x} has \texttt{\Link{names}}\end{Value}
\begin{SeeAlso}
\texttt{\Link{aperm}}, \texttt{\Link{matrix}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
dim(as.array(letters))
\end{ExampleCode}
\end{Examples}

