MatrixList-class: MatrixList object
Description
A MatrixList object is a container for a list of matrices which have the same
number of columns but can have varying number of rows. Additionally, one can
store an extra information corresponding to each of the matrices in
metadata
matrix.
Usage
"names"(x)
"names"(x) <- value
"rownames"(x)
"rownames"(x) <- value
"colnames"(x)
"colnames"(x) <- value
"length"(x)
"elementNROWS"(x)
"dim"(x)
"nrow"(x)
"ncol"(x)
"[["(x, i, j)
"$"(x, name)
"["(x, i, j)
Arguments
value, i, j, name
Parameters used for subsetting and assigning new
attributes to x.
Value
-
names(x)
, names(x) <- value
: Get or set names
of matrices.
-
rownames(x)
, rownames(x) <- value
,
colnames(x)
, colnames(x) <- value
: Get or set row names or
column names of unlistData slot.
-
length(x)
: Get the number of
matrices in a list.
-
elementNROWS(x)
: Get the number of rows of each of
the matrices.
-
dim(x)
, nrow(x)
, ncol(x)
: Get the
dimensions, number of rows or number of columns of unlistData slot.
-
x[[i]]
, x[[i, j]]
: Get the matrix i, and optionally, get only
columns j of this matrix.
-
x$name
: Shortcut for
x[["name"]]
.
-
x[i, j]
: Get a subset of MatrixList that
consists of matrices i with columns j.
Slots
unlistData
- Matrix which is a row binding of all the matrices in a list.
partitioning
- List of indexes which defines the row partitioning of
unlistData matrix into the original matrices.
metadata
- Matrix of additional information where each row corresponds to
one of the matrices in a list.