mcIntosh {forestHES}R Documentation

Calculation of mcIntosh diversity index

Description

Calculation of mcIntosh diversity index

Usage

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

######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

[Package forestHES version 1.0-1 Index]