Learn R Programming

picante (version 1.8.2)

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

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

ses.mpd

Examples

Run this code
# NOT RUN {
data(phylocom)
mpd(phylocom$sample, cophenetic(phylocom$phylo), abundance.weighted=TRUE)
# }

Run the code above in your browser using DataLab