interleaveMatricesByColumn | R Documentation |
The matrices need to have the same dimensions and column names must be equal. The first matrix needs row names as well. This is used to merge, e.g. matrices for expression signal and present flag by sample.
interleaveMatricesByColumn(x, y, suffixes = c("[Signal]", "[Present]"))
x |
first matrix containing both row and column names. |
y |
second matrix containing the same column names as the first one. |
suffixes |
a character vector to append as suffixes to the colnames of the result. |
Returns the combined matrix.
Rehrauer, Hubert
Schmid, Peter
m1 = matrix(1:10,2)
m2 = matrix(11:20,2)
colnames(m1) = as.character(1:5)
rownames(m1) = c("a","b")
colnames(m2) = as.character(1:5)
interleaveMatricesByColumn(m1,m2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.