Learn R Programming

spaa (version 0.2.5)

niche.width: Niche width

Description

Compute niche width for all the species in a community.

Usage

niche.width(mat, method = c("shannon", "levins"))

Value

A vetor containing niche width for all the species in the community.

Arguments

mat

A community matrix with columns representing species, and rows representing plots.

method

Character string showing the name of the index.

Author

Jinlong Zhang jinlongzhang01@gmail.com

References

Zhang Jin-tun,(2004 ) Quantitative Ecology, Science Press, Beijing

See Also

niche.overlap for niche overlap

Examples

Run this code

data(datasample)
niche.width(datasample, method = "levins")
niche.width(datasample, method = "shannon")

Run the code above in your browser using DataLab