dim.garray {garray} | R Documentation |
Dimensions of a generalized array
Description
Retrieve or set the dimension of a generalized array.
Usage
## S3 method for class 'garray'
dim(x)
## S3 replacement method for class 'garray'
dim(x) <- value
Arguments
x |
An generalized array. |
value |
An integer (can be coerced from double numeric) vector, with names. |
Details
The functions dim
and dim<-
are internal generic primitive functions.
Here dim.garray
and dim<-.garray
are methods for 'garray's, which
returns and setting with the named dimensions (margins). The two
function is usually used as, for example, dim(arr)
and
dim(arr) <- c(A=3,B=2)
.
Native R saves the names of dim but seldom uses it. However, it is
undocumented and not stable because some functions
discard it (like: t()) . This package will totally neglect it but
keeps the margins in dimnames.
[Package garray version 1.1.2 Index]