Description Usage Arguments Details Value Author(s)
Calculates mean pairwise distance separating taxa in a
community (slightly modified from the picante
function: mpd
)
1 |
samp |
Community data matrix. |
dis |
Interspecific distance matrix. |
abundance.weighted |
Should mean pairwise diatnces be weighted by species abundance? (default = FALSE). |
ord |
Order rows and columns of the matrices?
(defaults to |
Two changes from original mpd
function: (1)
avoid NA values (TODO: better description here). (2) give
useful error messages for poorly named samp
and
dis
. Also please be aware that if
abundance.weighted = FALSE
, then samp
should
be explicitly a presence-absence matrix (i.e. with zeros
and ones only).
Vector of MPD values for each community.
Code modified from original version by Steven Kembel.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.