Description Usage Arguments Details Value Dimnames Author(s) See Also Examples
Construct a DSArray from a 3-dimensional array, a matrix, or a list of matrix objects with identical dimensions.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
x |
A 3-dimensional array, a list of matrix objects with identical dimensions, or a matrix. |
... |
Further arguments passed to other methods |
dimnames |
A dimnames attribute for the DSArray: NULL or
a list of length 3. An empty list is treated as |
MARGIN |
An integer given the dimension number that indexes samples;
see Examples. The default, |
The difference between calling DSArray()
without any arguments
and calling new("DSArray")
is like the difference between calling
array()
and calling new("array")
; using the explicit
constructor is to be preferred.
A DSArray object.
If the dimnames
argument to the DSArray
constructor is
NULL
then the dimnames of the returned DSArray object are constructed
as follows:
If x
is an array: use dimnames(x)[MARGIN]
for slicenames, and dimnames(x)[-MARGIN]
as rownames and colnames of
the returned object, respectively.
If x
is a list of matrix objects
with identical dimensions: rownames of the returned object are the rownames
of the first element x
with non-NULL
rownames; colnames of
the returned object are taken from names(x)
; slicenames of the
returned object are the colnames of first element of x
with
non-NULL
colnames.
If x
is a matrix: use rownames(x)
for
the rownames and colnames(x)
for the slicenames of the returned
object, respectively. The colnames of the returned object are NULL
.
Peter Hickey
DSArray-class
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.