resamp.2s: randomizing a community phylogenetics matrix: '2s' of Hardy...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/dataResampling.R

Description

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

Usage

1
resamp.2s(obj)

Arguments

obj

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

Details

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

Value

A shuffled dataset

Author(s)

Jonathan Eastman

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

1
2
3
4
5
6
data(sp.example)
attach(sp.example)
spl

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

spacodiR documentation built on May 2, 2019, 8:26 a.m.

Related to resamp.2s in spacodiR...