ìs_matrixset
tests if its argument is a proper matrixset
object.
dim
retrieves the dimension of the matrixset
matrices (which are the
same for reach). Similarly,nrow
returns the number of rows for each
matrices, and ncol
returns the number of columns.
dimnames
retrieves the dimnames of the matrixset
matrices (which are the
same for reach). Similarly, rownames
(colnames
) will retrieve row
(column) names.
matrixnames
retrieves the matrix names, or NULL
if the matrices are not
named.
nmatrix
returns the number of matrices of a matrixset
.
row_traits
returns the object's row traits; these are the column names of
the row annotation data frame.
column_traits
returns the object's column traits; these are the column
names of the column annotation data frame.
row_info
extracts the row annotation data frame. column_info
does
the same thing for column annotation.
row_tag
returns the column name of row_info
that stores the matrixset
's
row names. column_tag
returns the column name of column_info
that stores
the matrixset
's column names.
The replacement methods for row_traits
/row_info
and column_traits
/column_info
can potentially change meta variables that were used for grouping. There is
always an attempt to keep the original groups, but they will be updated if it
is possible - a message is issued when that happens - and otherwise removed
altogether, with a warning.
matrix_elm
extracts a single matrix. It's a wrapper to x[,,matrix]
, but
returns the matrix element. The replacement method matrix_elm
is also a
wrapper to x[,,matrix] <-
.