as.incfreq: Transform incidence raw data to incidence frequencies (iNEXT...

View source: R/invChat.R

as.incfreqR Documentation

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

Description

as.incfreq: transform incidence raw data (a species by sites detection/non-detection or presence/absence matrix) to incidence frequencies data (iNEXT input format): the first element is the total number of sampling units, followed by the vector of species frequencies. Here species frequencies represent the row sums of the incidence raw matrix.

Usage

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 element is the total number of sampling units.

Examples

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


iNEXT documentation built on May 29, 2024, 5:57 a.m.