applyThreshold: Apply a threshold to a community matrix.

Description Usage Arguments Value Author(s)

Description

This function apply a species specific threshold or a single threshold to a community matrix, converting abundance data to presence/absence data.

Usage

1
applyThreshold(commMatrix, threshold)

Arguments

commMatrix

Matrix. Community matrix (species by sites) with abundance data (or predictions from a model).

threshold

Data.frame (or Matrix) or numeric value. If the threshold is a value it will apply the same threshold to all the species. If the threshold is a data.frame it should have the same number of rows as species in the community matrix and two columns. The first columns should indicate the name of the species and the second the threshold for each species.

Value

Matrix. The output is a new community matrix with the same dimmensions as the input data (data). The values are now binary instead of abundances.

Author(s)

Diego Nieto Lugilde


dinilu/paleoCLMs-package documentation built on May 15, 2019, 8:46 a.m.