skembel / picante

R tools for integrating phylogenies and ecology
33 stars 17 forks source link

Update match.comm.dist #11

Closed daijiang closed 7 years ago

daijiang commented 7 years ago

When the phylognetic distance matrix has less species than the community matrix, dis[colnames(comm), colnames(comm)] will throw an error about out of bounce. Use dis[colnames(res$comm), colnames(res$comm)] instead.