divc {ade4} | R Documentation

## Rao's diversity coefficient also called quadratic entropy

### Description

Calculates Rao's diversity coefficient within samples.

### Usage

    divc(df, dis)

### Arguments

`df` | a data frame with elements as rows, samples as columns, and abundance, presence-absence or frequencies as entries
`dis` | an object of class `dist` containing distances or dissimilarities among elements. If `dis` is NULL, Gini-Simpson index is performed.

### Value

Returns a data frame with samples as rows and the diversity coefficient within samples as column

### Author(s)

Sandrine Pavoine pavoine@biomserv.univ-lyon1.fr

### References

Rao, C.R. (1982) Diversity and dissimilarity coefficients: a unified approach. Theoretical Population Biology, 21, 24–43.

Gini, C. (1912) Variabilitá e mutabilitá. Universite di Cagliari III, Parte II.

Simpson, E.H. (1949) Measurement of diversity. Nature, 163, 688.

### Examples

    data(humDNAm)
    divc(humDNAm$samples, sqrt(humDNAm$distances))
    ## Not run:
    data(ecomor)
    ecomor.phylog <- taxo2phylog(ecomor$taxo)
    divc(ecomor$habitat, ecomor.phylog$Wdist)
    ## End(Not run)

[Package Contents]