Description Usage Arguments Details
Retrieve or set the dimension of a generalized array.
1 2 3 4 5 |
x |
An generalized array. |
value |
An integer (can be coerced from double numeric) vector, with names. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.