Hi Thomas.
For just two matrices (say, A & B), this is easy:
aa<-sort(unique(c(rownames(A),rownames(B
bb<-sort(unique(c(colnames(A),colnames(B
XX<-matrix(NA,length(aa),length(bb),dimnames=list(aa,bb))
XX[rownames(A),colnames(B)]<-A
XX[rownames(B),colnames(B)]<-B
There may be some easier
Hi,
I have a certain number of character matrices that I want to merge together but
unfortunately all the matrices don't have the same number of taxa and
characters. However there is always more than one character/taxa in common
between each matrix.
I have something like that:
TaxaCharacte