Description Usage Arguments Details Value

View source: R/produce_presabs_matrix.R

Produce a presence/absence matrix from a matrix of shared species between sites.

1 | ```
produce_presabs_matrix(sharedmatrix, nsamples = 1000)
``` |

`sharedmatrix` |
a matrix where each cell contains the number of species shared between the column and row. |

`nsamples` |
number of times to sample the possible new rows. Higher values take longer, but they are more likely to return the actual answers. |

This function is designed to link alpha and beta diversity values to presence/absence for maximum coverage.

Each cell in the input matrix should be an integer number of species shared between sites. So the diagonal will be alpha diversities while other cells will represent a type of beta diversity.

Returns a presence/absence matrix with sites across the rows and species down the columns.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.