as.incfreq {iNEXT} | R Documentation |
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.
as.incfreq(x)
x |
a |
a vector
of species incidence frequencies, the first element is the total number of sampling units.
data(ciliates)
lapply(ciliates, as.incfreq)