Learn R Programming

iNEXT (version 2.0.8)

as.incfreq: 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

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

Run this code
data(plant)
lapply(plant, as.incfreq)

Run the code above in your browser using DataLab