functional_evenness: Calculates functional evenness

functional_evennessR Documentation

Calculates functional evenness

Description

Calculates functional evenness from a species-trait matrix and possibly an abundance vector.

Usage

functional_evenness(x, w, a = rep(1, nrow(x)), gower = T)

Arguments

x

numeric matrix. Species-trait matrix.

w

numeric vector. A relative variable importance vector. Not used in case 'gower' = FALSE.

a

optional numeric vector. Species-abundances.

gower

a logical. Calculate entropy based on Gower dissimilarity as opposed to euclidean distance.

Value

a number. A double between 0 and 1.

Details

The minimum spanning tree is constructed from a pairwise similiarity matrix, which is an inefficient way to do so. It seems however, that efficient implementations of minimum spanning trees escape the algorithmic landscape of R.

Species with an abundance of 0, are automatically filtered, before any computations.

References

\insertRef

Villeger2008asgerbachelor


asgersvenning/bachelor documentation built on May 2, 2023, 7:06 a.m.