mpd function

Mean pairwise distance

Mean pairwise distance

Calculates mean pairwise distance separating taxa in a community

mpd(samp, dis, abundance.weighted=FALSE)

Arguments

  • samp: Community data matrix
  • dis: Interspecific distance matrix
  • abundance.weighted: Should mean pairwise distances be weighted by species abundance? (default = FALSE)

Returns

Vector of MPD values for each community

References

Webb, C., D. Ackerly, M. McPeek, and M. Donoghue. 2002. Phylogenies and community ecology. Annual Review of Ecology and Systematics 33:475-505.

Author(s)

Steven Kembel steve.kembel@gmail.com

See Also

ses.mpd

Examples

data(phylocom) mpd(phylocom$sample, cophenetic(phylocom$phylo), abundance.weighted=TRUE)
  • Maintainer: Steven W. Kembel
  • License: GPL-2
  • Last published: 2020-06-10

Useful links