Co-Occurrence

## Usage

```
occurrence(object, ...)
# S4 method for matrix
occurrence(object)
# S4 method for data.frame
occurrence(object)
```

## Value

A stats::dist object.

## Details

A co-occurrence matrix is a symmetric matrix with zeros on its main diagonal, which works out how many times each pairs of taxa/types occur together in at least one sample.

## See also

Other diversity measures:
`heterogeneity()`

,
`plot_diversity`

,
`rarefaction()`

,
`richness()`

,
`similarity()`

,
`simulate()`

,
`turnover()`