Sim10: Gotelli's Sim10 Function

Description Usage Arguments Details Value Author(s) References Examples

View source: R/Sim10.R

Description

Randomizes a binary matrix m by reshuffling all elements. Rows & columns proportional to supplied row and column weights.

Usage

1
Sim10(m, Row.Weights, Col.Weights)

Arguments

m

A binary community matrix.

Row.Weights

User supplied sampling weights for rows.

Col.Weights

User supplied sampling weights for columns.

Details

Makes a call to the function 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.

Examples

1
2
3
4
data(com)
rw <- sample(1:10, nrow(com), replace=TRUE)
cw <- sample(1:10, ncol(com), replace=TRUE)
rand.com <- Sim10(com, Row.Weights=rw, Col.Weights=cw)

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