sim.sample {BAT} | R Documentation |

## Simulation of sampling from artificial communities.

### Description

Simulates a sampling process from artificial communities.

### Usage

```
sim.sample(comm, cells = 100, samples = 0)
```

### Arguments

`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). |

### Details

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.

### Value

A matrix of samples x species (values are abundance per species per sample).

### Examples

```
comm <- sim.spatial(1000, 10)
sim.sample(comm)
sim.sample(comm, cells = 10, samples = 5)
```

[Package

*BAT*version 2.9.6 Index]