Description Usage Arguments Value Slots Author(s)
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ## S4 method for signature 'MatrixList'
names(x)
## S4 replacement method for signature 'MatrixList'
names(x) <- value
## S4 method for signature 'MatrixList'
rownames(x)
## S4 replacement method for signature 'MatrixList'
rownames(x) <- value
## S4 method for signature 'MatrixList'
colnames(x)
## S4 replacement method for signature 'MatrixList'
colnames(x) <- value
## S4 method for signature 'MatrixList'
length(x)
## S4 method for signature 'MatrixList'
elementNROWS(x)
## S4 method for signature 'MatrixList'
dim(x)
## S4 method for signature 'MatrixList'
nrow(x)
## S4 method for signature 'MatrixList'
ncol(x)
## S4 method for signature 'MatrixList'
x[[i, j]]
## S4 method for signature 'MatrixList'
x$name
## S4 method for signature 'MatrixList,ANY'
x[i, j]
|
x |
MatrixList object. |
value, i, j, name |
Parameters used for subsetting and assigning new attributes to x. |
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.
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.
Malgorzata Nowicka
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.