Learn R Programming

EcoSimR (version 0.1.0)

checker: Checker Co-occurrence Metric

Description

Function to calculate number of unique pairs of species that never co-occur and form a "checkerboard pair".

Usage

checker(m = matrix(rbinom(100, 1, 0.5), nrow = 10))

Arguments

m
A binary presence-absence matrix in which rows are species and columns are sites.

Value

Returns the number of unique species pairs that never co-occur.

Details

In Diamond's (1975) assembly rules model, pairs of species that never co-occur in any site are interpreted as examples of interspecific competition. A set of communities structured this way should contain more checkerboard pairs than expected by chance.

References

Diamond, J.M. 1975. Assembly of species communities. p. 342-444 in: Ecology and Evolution of Communities. M.L. Cody and J.M. Diamond (eds.). Harvard University Press, Cambridge.

Connor, E.F. and D. Simberloff. 1979. The assembly of species communities: chance or competition? Ecology 60: 1132-1140.

Examples

Run this code
obsChecker <- checker(m=matrix(rbinom(100,1,0.5),nrow=10))

Run the code above in your browser using DataLab