Learn R Programming

OasisR (version 1.0.0)

HLoc: A function to compute local diversity (entropy) index

Description

Local adaptation of Pielou's normalised diversity index JPielou

Usage

HLoc(x)

Arguments

x
- an object of class matrix (or that can be coerced to that class), where each column represents the distribution of a population group, within spatial units. The number of columns should be greater than one (at least two population groups are require

Value

  • A vector with local diversity (entropy) index

References

Theil H. (1972) Statistical Decomposition Analysis. North-Holland, Amsterdam

See Also

Other local indices: location quotients LQ

Examples

Run this code
x <- slot(GreHSize, 'data')[ ,3:5]
HLoc(x)

Run the code above in your browser using DataLab