subMatDiffs | R Documentation |
retrieve submatrices of common rownames and colnames, and report differences
subMatDiffs(m1, m2, verbose = 3)
m1 |
matrix |
m2 |
matrix |
verbose |
integer vector representing vprint classes |
compare submatrices of m1 and m2 that have common rownames and colnames
returns no values
rn<-c("a","b","c")
cn<-c("a","b","c","d")
m1<-matrix(1:12,nrow=length(rn),ncol=length(cn))
rownames(m1)<-rn
colnames(m1)<-cn
m2<-m1
subMatDiffs(m1,m2)
m3<-m1
m3[1,1]<-0
m3[1,2]<-0
subMatDiffs(m1,m3)
m4<-m3
colnames(m4)<-c("aa","b","c","d")
subMatDiffs(m1,m4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.