calcENS: Calc Effective Number of Species

View source: R/calcENS.R

calcENSR Documentation

Calc Effective Number of Species

Description

Use the proportions of populations to calculate effective number of species. This is a general function, but I use it mainly to check the maximum iLISI when comparing harmony integrations. Simpson Diversity Index (D) = sum(prop_i)^2, where prop_i = ni / N, where ni = abundance of species i and N = total sample number Inverse = 1/D

Usage

calcENS(values_v, proportion_v = T)

Arguments

values_v

vector of values to compute with.

proportion_v

logical indicating if values are proportions or actual values

Value

inverse sum of squared proportions of values_v


weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.