custom header test
checker(m = matrix(rbinom(100, 1, 0.5), nrow = 10))
Function to calculate number of unique pairs of species that never co-occur and form a "checkerboard pair".
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.
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.
obsChecker <- checker(m=matrix(rbinom(100,1,0.5),nrow=10))