mvpd | R Documentation |
Calculate MPD and VPD. The distance matrix can be from functional traits or phylogeny. This function is the same as 'picante::mpd' when 'abundance.weighted = FALSE'; it is, however, different when 'abundance.weighted = TRUE' because this function does not include the diagonal values while 'picante::mpd' does, which is actually equal to Rao's Q instead of MPD (de Bello et al, 2016, Oecologia).
mvpd(samp, dis, abundance.weighted = FALSE)
samp |
A site by species data frame, site names as row names. |
dis |
A distance matrix. |
abundance.weighted |
Whether to weight by species abundance? Default is 'FALSE'. |
A data frame with three columns: site, mpd, and vpd.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.