Matrix2Inci: Presence/Absence data transform into incidence frequency data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Matrix2Inci.R

Description

Transfer prensence/absence data into incidence frequency data.

Usage

1
Matrix2Inci(mat.data)

Arguments

mat.data

a numerical matrix or a data frame, the presence/absence of each species is recorded in the matrix. If the species is presence, it is record 1. On the contrary, it is record 0. See Seed_data

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
# load the prensence/absence data
data(Seed_data)

# Transform the data format
Matrix2Inci(Seed_data)
ChaoEntropy(data=Matrix2Inci(Seed_data), datatype="incidence", method="all",
            se=TRUE, nboot=200, conf=0.95)

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