powered by
Creates a matrix giving the mean distances within and between species.
sppDistMatrix(distobj, sppVector)
A distance matrix.
The species vector (see sppVector).
sppVector
A square matrix with dimensions length(sppVector). It contains the mean intra specific distances down the diagonal, and the mean pairwise distance between the species in the triangles. The two triangles are identical.
length(sppVector)
# NOT RUN { data(dolomedes) doloDist <- ape::dist.dna(dolomedes) doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5) sppDistMatrix(doloDist, doloSpp) # }
Run the code above in your browser using DataLab