sim.sample {BAT} | R Documentation |
Simulates a sampling process from artificial communities.
sim.sample(comm, cells = 100, samples = 0)
comm |
simulated community data from function sim.spatial. |
cells |
number of cells to divide the simulated space into. Default is 100. |
samples |
number of samples (cells) to randomly extract. Default is the number of cells (the entire community). |
The space will be divided in both dimensions by sqrt(cells).
Function useful for simulating sampling processes from the results of sim.spatial.
May be used as direct input to other functions (e.g. alpha, alpha.accum, beta, beta.accum) to test the behavior of multiple descriptors and estimators.
A matrix of samples x species (values are abundance per species per sample).
comm <- sim.spatial(1000, 10)
sim.sample(comm)
sim.sample(comm, cells = 10, samples = 5)