Sim8: Sim8 Function

Description Usage Arguments Details Value Author(s) References Examples

View source: R/Sim8.R

Description

Randomizes a binary matrix m by reshuffling all elements. Columns are proportional to column sums, rows proportional to row sums.

Usage

1
Sim8(m)

Arguments

m

A binary community matrix.

Details

Makes a call to VectorSample.

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.

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 <- Sim8(m)

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