sppDistMatrix {spider} | R Documentation |
Mean intra- and inter-specific distance matrix
Description
Creates a matrix giving the mean distances within and between species.
Usage
sppDistMatrix(distobj, sppVector)
Arguments
distobj |
A distance matrix. |
sppVector |
The species vector (see |
Value
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.
Author(s)
Samuel Brown <s_d_j_brown@hotmail.com>
Examples
data(dolomedes)
doloDist <- ape::dist.dna(dolomedes)
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)
sppDistMatrix(doloDist, doloSpp)
[Package spider version 1.5.0 Index]