Learn R Programming

picante (version 0.7-1)

randomizeSample: Null models for community data matrix randomization

Description

Various null models for randomizing community data matrices

Usage

randomizeSample(samp, null.model = c("frequency", "richness", "independentswap", "trialswap"),iterations = 1000)

Arguments

samp
Community data matrix
null.model
Null model to use (see Details section for description)
iterations
Number of independent or trial-swaps to perform

Value

  • Randomized community data matrix

Details

Currently implemented null models (arguments to null.model): [object Object],[object Object],[object Object],[object Object]

References

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

Miklos I. & Podani J. 2004. Randomization of presence-absence matrices: Comments and new algorithms. Ecology 85: 86-92.

Examples

Run this code
data(phylocom)
randomizeSample(phylocom$sample, null.model="richness")

Run the code above in your browser using DataLab