Closed daijiang closed 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.
dis[colnames(comm), colnames(comm)]
dis[colnames(res$comm), colnames(res$comm)]
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. Usedis[colnames(res$comm), colnames(res$comm)]
instead.