mntd: Mean nearest taxon distance

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/phylodiversity.R

Description

Calculates MNTD (mean nearest taxon distance) for taxa in a community

Usage

1
mntd(samp, dis, abundance.weighted=FALSE)

Arguments

samp

Community data matrix

dis

Interspecific distance matrix

abundance.weighted

Should mean nearest taxon distances for each species be weighted by species abundance? (default = FALSE)

Details

This metric has also been referred to as MNND (mean nearest neighbour distance), and the function was named mnnd in picante versions < 0.7.

Value

Vector of MNTD values for each community.

Author(s)

Steven Kembel <[email protected]>

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.mntd

Examples

1
2
data(phylocom)
mntd(phylocom$sample, cophenetic(phylocom$phylo), abundance.weighted=TRUE)

Example output

Loading required package: ape
Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.4-4
Loading required package: nlme
[1] 2.000 2.000 2.000 2.000 6.000 4.875

picante documentation built on May 15, 2018, 1:05 a.m.