Description Usage Arguments Value Author(s) References Examples
Calculation of mcIntosh diversity index
1 | mcIntosh(x, MARGIN = 1)
|
x |
The species matrix |
MARGIN |
Compute the mcIntosh diversity index by row, MARGIN can be set 1; compute the mcIntosh diversity index by column, MARGIN can be set 2; |
The mcIntosh diversity index
Zongzheng Chai
McIntosh RP.1967. An index of diversity and the relation of certain concepts to diversity. Ecol.Soc.Am. 48:329-404.
1 2 3 4 5 6 7 8 | ######Calculation based on multiple plots
####convert raw data to species matrix
##raw data of multiple plots
data(herbdata)
herb.spematrix<-longtowide(longdata=herbdata,left="plot.id",up="spe.id",inner="abundance")
##compute species mcIntosh diversity index for each plot
herb.mcIntosh<-mcIntosh(herb.spematrix)
herb.mcIntosh
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.