Description Usage Arguments Details Value Author(s) References See Also Examples
resamp.2x is used for resampling data within a community dataset
| 1 | resamp.2x(obj, level=0.1)
 | 
| obj | a community dataset in spacodiR format (see  | 
| level | a proportion specifying the extent of data shuffling | 
A resampling procedure for a species-by-plots matrix, based on Gotelli swapping. 
Shuffles abundances within a pair of plots and for a pair of species.  The level defines 
the degree of sampling, with larger values dictating a higher level of reshuffling.  For instance, 
if level = 0.4 and the dataset involves 5 species and 10 plots, a total of 20 (0.4x5x10) Gotelli-like swaps are performed.  The number of swaps is always rounded up such that at least one swap is performed (i.e., when level=0).
A shuffled dataset
Jonathan Eastman
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.
GOTELLI NJ. 2000. Null model analysis of species co-occurrence patterns. Ecology 81:2606-2621.
spacodi.by.nodes for permutation tests of community diversity and additional randomization methods; 
see spacodi.calc for the main underlying function; randomizeMatrix
| 1 2 3 4 5 6 | data(sp.example)
attach(sp.example)
spl
# shuffle dataset
resamp.2x(obj=spl, level=0.2) 
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.