mcIntosh: Calculation of mcIntosh diversity index

Description Usage Arguments Value Author(s) References Examples

Description

Calculation of mcIntosh diversity index

Usage

1
mcIntosh(x, MARGIN = 1)

Arguments

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;

Value

The mcIntosh diversity index

Author(s)

Zongzheng Chai

References

McIntosh RP.1967. An index of diversity and the relation of certain concepts to diversity. Ecol.Soc.Am. 48:329-404.

Examples

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

Zongzheng/forestHES documentation built on May 10, 2019, 1:59 a.m.