sppDistMatrix: Mean intra- and inter-specific distance matrix

Description Usage Arguments Value Author(s) Examples

Description

Creates a matrix giving the mean distances within and between species.

Usage

1

Arguments

distobj

A distance matrix.

sppVector

The species vector (see sppVector).

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

1
2
3
4
5
data(dolomedes)
doloDist <- dist.dna(dolomedes)
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)

sppDistMatrix(doloDist, doloSpp)

spider documentation built on May 2, 2019, 5:16 p.m.