| Line 66... |
Line 66... |
| 66 |
length zero, \code{NA} of an appropriate type is used for atomic
|
66 |
length zero, \code{NA} of an appropriate type is used for atomic
|
| 67 |
vectors (\code{0} for raw vectors) and \code{NULL} for lists.
|
67 |
vectors (\code{0} for raw vectors) and \code{NULL} for lists.
|
| 68 |
|
68 |
|
| 69 |
Unlike \code{\link{matrix}}, \code{array} does not currently remove
|
69 |
Unlike \code{\link{matrix}}, \code{array} does not currently remove
|
| 70 |
any attributes left by \code{as.vector} from a classed list
|
70 |
any attributes left by \code{as.vector} from a classed list
|
| 71 |
\code{data}, so can returned a list array with a class attribute.
|
71 |
\code{data}, so can return a list array with a class attribute.
|
| 72 |
|
72 |
|
| 73 |
\code{as.array} is a generic function for coercing to arrays. The
|
73 |
\code{as.array} is a generic function for coercing to arrays. The
|
| 74 |
default method does so by attaching a \code{\link{dim}} attribute to
|
74 |
default method does so by attaching a \code{\link{dim}} attribute to
|
| 75 |
it. It also attaches \code{\link{dimnames}} if \code{x} has
|
75 |
it. It also attaches \code{\link{dimnames}} if \code{x} has
|
| 76 |
\code{\link{names}}. The sole purpose of this is to make it possible
|
76 |
\code{\link{names}}. The sole purpose of this is to make it possible
|