ed: Calculate alpha, beta and gamma true entropies and...

Description Usage Arguments Value See Also Examples

View source: R/ed.R

Description

Calculates alpha, beta and gamma true diversities of a data set. The matrix or data frame is automatically scaled to row sums of one.

Usage

1
ed(x, q = 1, w = 1, retq = TRUE)

Arguments

x

the input matrix or data frame.

q

the order of diversity; typically 0, 1 or 2.

w

weights if required.

retq

if TRUE then diversities are returned; if FALSE the entropies for alpha and gamma are returned.

Value

a vector of entropies or diversities

See Also

dev2div, ed1, eds, eds1

Examples

1
2
3
4
5
6
7
data(spider6)
ed(spider6[,1:6])
ed(spider6[,1:6],q=0)
ed(spider6[,1:6],q=2)
ed(spider6[,1:6],retq=FALSE)
data(spider6)
ed(spider6[,1:6])

MDM documentation built on May 30, 2017, 4:58 a.m.