Mean pairwise distance
Calculates mean pairwise distance separating taxa in a community
mpd(samp, dis, abundance.weighted=FALSE)
samp
: Community data matrixdis
: Interspecific distance matrixabundance.weighted
: Should mean pairwise distances be weighted by species abundance? (default = FALSE)Vector of MPD values for each community
Webb, C., D. Ackerly, M. McPeek, and M. Donoghue. 2002. Phylogenies and community ecology. Annual Review of Ecology and Systematics 33:475-505.
Steven Kembel steve.kembel@gmail.com
ses.mpd
data(phylocom) mpd(phylocom$sample, cophenetic(phylocom$phylo), abundance.weighted=TRUE)
Useful links