View source: R/sppDistMatrix.R
sppDistMatrix | R Documentation |
Creates a matrix giving the mean distances within and between species.
sppDistMatrix(distobj, sppVector)
distobj |
A distance matrix. |
sppVector |
The species vector (see |
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.
Samuel Brown <s_d_j_brown@hotmail.com>
data(dolomedes)
doloDist <- ape::dist.dna(dolomedes)
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)
sppDistMatrix(doloDist, doloSpp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.