# Compute niche overlap index between two species

`niche.overlap.pair.Rd`

Compute niche overlap index between two species. This is an internal function, used `niche.overlap` instead.

    niche.overlap.pair(vectA, vectB, method = c("pianka",
         "schoener","petraitis","czech","morisita", "levins"))

## Arguments

vectA | A numeric vector containing species A's abundance or importance value
vectB | A numeric vector containing species B's abundance or importance value
method | Niche overlap index

## Details

None

## Value

The niche overlap index

## References

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

Nicholas J. Gotelli. 2000. Null model analysis of species co-occurrence patterns. Ecology 81:2606-2621. http://esapubs.org/archive/ecol/E081/022/EcoSim

## Author

Jinlong Zhang jinlongzhang01@gmail.com

## See also

`niche.overlap`

## Examples

    data(datasample)
    niche.overlap.pair(datasample[,1],datasample[,2], method = "levins")
    #> [1] 0.9206029