Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mpd

Mean pairwise distance


Description

Calculates mean pairwise distance separating taxa in a community

Usage

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)

Value

Vector of MPD values for each community

Author(s)

Steven Kembel <steve.kembel@gmail.com>

References

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

See Also

Examples

data(phylocom)
mpd(phylocom$sample, cophenetic(phylocom$phylo), abundance.weighted=TRUE)

picante

Integrating Phylogenies and Ecology

v1.8.2
GPL-2
Authors
Steven W. Kembel <steve.kembel@gmail.com>, David D. Ackerly <dackerly@berkeley.edu>, Simon P. Blomberg <s.blomberg1@uq.edu.au>, Will K. Cornwell <cornwell@zoology.ubc.ca>, Peter D. Cowan <pdc@berkeley.edu>, Matthew R. Helmus <mrhelmus@wisc.edu>, Helene Morlon <morlon.helene@gmail.com>, Campbell O. Webb <cwebb@oeb.harvard.edu>
Initial release
2020-06-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.