Learn R Programming

spacodiR (version 0.13.0115)

resamp.1s: randomizing a community phylogenetics matrix: '1s' of Hardy (2008)

Description

resamp.1s is used for resampling data within a community dataset

Usage

resamp.1s(obj)

Arguments

obj
a community dataset in spacodiR format (see as.spacodi)

Value

Details

A resampling procedure for a species-by-plots matrix, where observed abundances are shuffled across species and plots.

References

HARDY OJ. 2008. Testing the spatial phylogenetic structure of local communities: statistical performances of different null models and test statistics on a locally neutral community. Journal of Ecology 96:914-926.

See Also

spacodi.by.nodes for permutation tests of community diversity and additional randomization methods; see spacodi.calc for the main underlying function; randomizeMatrix

Examples

Run this code
data(sp.example)
attach(sp.example)
spl

# shuffle dataset
resamp.1s(obj=spl) 

Run the code above in your browser using DataLab