C_combo: Number of unique species combinations

Description Usage Arguments Value

Description

This function follows the code from EcoSimR package by Gotelli, Hard and Ellison, specifically, it re-uses their 'species_combo' function. Note: Before the calculation, species (rows) with zero occurrences, and sites (columns) with zero species are removed from m.

Usage

1
C_combo(m, clean = TRUE)

Arguments

m

Community data matrix with species as rows and sites as columns. Can contain either incidences (1/0) or abundances (natural numbers).

clean

Logical. Do you want to remove zero-sum rows or columns? When the index needs the "d" fraction (sites where no species occurs), only zero-sum rows are removed.

Value

A single number, the number of unique species combinations.


petrkeil/spasm documentation built on Jan. 15, 2021, 6:08 p.m.