Count2Inci: Incidence counts data transform into incidence frequency data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Count2Inci.R

Description

Transfer incidence counts data into incidence frequency data.

Usage

1
Count2Inci(count.data, t)

Arguments

count.data

input species incidence counts data: a numerical matrix or a data frame of two columns. The first column is the frequency j=1, 2...; and the second column is incidence counts (Qj).

Example: there are 39 singletons, 18 doubletons and so on in Ant_data.count:

[1,] 1 39
[2,] 2 18
[3,] 3 13
[..,] ... ...
[16,] 19 2
[17,] 20 1
[18,] 29 1
t

the total number of sampling units.
e.g. See Ant_data: t = 62

Value

a numeric vector which first entry is total number of sampling units, and followed by species incidence frequency.

Author(s)

Y.T. Wang ; Y.H. Lee ; K.S. Tseng ; Anne Chao
Maintainer : Anne Chao [email protected]

See Also

ChaoEntropy

Examples

1
2
3
4
5
6
7
8
9
# load the incidence counts data
data(Ant_data.count)
t <- 62


# Transform the data format
Count2Inci(Ant_data.count, t)
ChaoEntropy(data=Count2Inci(Ant_data.count, t), datatype="incidence", method="all",
            se=TRUE, nboot=200, conf=0.95)

JohnsonHsieh/ChaoEntropy documentation built on May 9, 2017, 2:06 a.m.