| Line 27... |
Line 27... |
| 27 |
and naming information in \code{dimnames}. The values in \code{data} are
|
27 |
and naming information in \code{dimnames}. The values in \code{data} are
|
| 28 |
taken to be those in the array with the leftmost subscript moving
|
28 |
taken to be those in the array with the leftmost subscript moving
|
| 29 |
fastest. If there are too few elements in \code{data} to fill the array,
|
29 |
fastest. If there are too few elements in \code{data} to fill the array,
|
| 30 |
then the elements in \code{data} are recycled. If \code{data} has
|
30 |
then the elements in \code{data} are recycled. If \code{data} has
|
| 31 |
length zero, \code{NA} of an appropriate type is used for atomic
|
31 |
length zero, \code{NA} of an appropriate type is used for atomic
|
| 32 |
vectors and \code{NULL} for lists.
|
32 |
vectors (\code{0} for raw vectors) and \code{NULL} for lists.
|
| 33 |
|
33 |
|
| 34 |
\code{as.array()} coerces its argument to be an array by attaching a
|
34 |
\code{as.array()} coerces its argument to be an array by attaching a
|
| 35 |
\code{\link{dim}} attribute to it. It also attaches
|
35 |
\code{\link{dim}} attribute to it. It also attaches
|
| 36 |
\code{\link{dimnames}} if \code{x} has \code{\link{names}}.
|
36 |
\code{\link{dimnames}} if \code{x} has \code{\link{names}}.
|
| 37 |
The sole purpose of this is to make it possible to access the
|
37 |
The sole purpose of this is to make it possible to access the
|