Transform incidence raw data to incidence frequencies (iNEXT input format)

Description

as.incfreq: transform incidence raw data (a species by sites presence-absence matrix) to incidence frequencies data (iNEXT input format, a row-sum frequencies vector contains total number of sampling units).

Usage

1
as.incfreq(x)

Arguments

x

a data.frame or matirx of species by sites presence-absence matrix.

Value

a vector of species incidence frequencies, the first entry of the input data must be total number of sampling units.

Examples

1
2
data(ciliates)
lapply(ciliates, as.incfreq)