as.incfreq {iNEXT} | R 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 |
Value
a vector
of species incidence frequencies, the first element is the total number of sampling units.
Examples
data(ciliates)
lapply(ciliates, as.incfreq)
[Package iNEXT version 3.0.1 Index]