Last data update: 2014.03.03

R: Calculate alpha, beta and gamma parametric entropies and...
eds1R Documentation

Calculate alpha, beta and gamma parametric entropies and diversities

Description

Calculates parametric diversities of individual sites of a data set

Usage

eds1(x, q = 1, retq = TRUE)

Arguments

x

the input matrix or data frame.

q

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

retq

if TRUE then parametric 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

data(spider6)
eds1(spider6[,1:6])
eds1(spider6[,1:6],q=0)
eds1(spider6[,1:6],q=2)
eds1(spider6[,1:6],retq=FALSE)
data(spider6)
eds1(spider6[,1:6])

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MDM)
Loading required package: nnet
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MDM/eds1.Rd_%03d_medium.png", width=480, height=480)
> ### Name: eds1
> ### Title: Calculate alpha, beta and gamma parametric entropies and
> ###   diversities
> ### Aliases: eds1
> 
> ### ** Examples
> 
> data(spider6)
> eds1(spider6[,1:6])
 [1] 1.818969 1.979626 1.979626 1.818969 1.649385 1.818969 2.889138 2.978152
 [9] 3.298770 3.238806 2.813984 3.170033 3.422256 3.724701 4.178275 4.779523
[17] 3.964011 2.925727 3.399321 4.649327 3.469522 3.170033 3.709079 4.341153
[25] 3.363586 2.552028 2.649351 2.828427
> eds1(spider6[,1:6],q=0)
 [1] 2 2 2 2 2 2 4 4 4 5 3 4 5 5 6 6 4 4 4 5 5 4 4 5 4 3 3 3
> eds1(spider6[,1:6],q=2)
 [1] 1.493601 1.922100 1.922100 1.493601 1.250718 1.493601 2.118495 2.144042
 [9] 2.501437 2.211578 2.363965 2.464956 2.347738 2.855649 2.817816 3.560301
[17] 3.867843 1.581238 2.295839 4.169010 1.809010 1.839746 3.237601 3.274591
[25] 2.276322 1.996010 2.206286 2.381102
> eds1(spider6[,1:6],retq=FALSE)
 [1] 0.5982696 0.6829081 0.6829081 0.5982696 0.5004024 0.5982696 1.0609582
 [8] 1.0913030 1.1935496 1.1752046 1.0346012 1.1537419 1.2302999 1.3149865
[15] 1.4298984 1.5643407 1.3772563 1.0735428 1.2235757 1.5367225 1.2440167
[22] 1.1537419 1.3107837 1.4681399 1.2130076 0.9368883 0.9743148 1.0397208
> data(spider6)
> eds1(spider6[,1:6])
 [1] 1.818969 1.979626 1.979626 1.818969 1.649385 1.818969 2.889138 2.978152
 [9] 3.298770 3.238806 2.813984 3.170033 3.422256 3.724701 4.178275 4.779523
[17] 3.964011 2.925727 3.399321 4.649327 3.469522 3.170033 3.709079 4.341153
[25] 3.363586 2.552028 2.649351 2.828427
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>