Sim6: Gotelli's Sim6 Function

Description Usage Arguments Value Author(s) References Examples

View source: R/Sim6.R

Description

Randomizes a binary matrix m by reshuffling all elements. Rows are equiprobable, columns proportional to column sums.

Usage

1
Sim6(m)

Arguments

m

A binary community matrix.

Value

A randomized binary matrix of the same dimensions as the input matrix.

Author(s)

Nicholas J. Gotelli. Help edited by John Quensen.

References

Gotelli, N. J. 2000. Null model analysis of species co-occurrence patterns. Ecology 81:2606-2621.

Examples

1
2
3
m <- sample(c(1,0), 50, replace=TRUE)
m <- matrix(m, 5, 10)
random.sam <- Sim6(m) 

jfq3/QsNullModels documentation built on April 6, 2020, 2:06 p.m.