produce_presabs_matrix: Produce a presence/absence matrix from a matrix of shared...

Description Usage Arguments Details Value

View source: R/produce_presabs_matrix.R

Description

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

Usage

1
produce_presabs_matrix(sharedmatrix, nsamples = 1000)

Arguments

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.

Details

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.

Value

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


pmckenz1/mcpdiversity documentation built on May 25, 2019, 9:25 a.m.