sad {BAT}R Documentation

Species-abundance distribution (SAD).

Description

Fits the SAD to community abundance data with possible rarefaction.

Usage

sad(comm, raref = 0, runs = 100)

Arguments

comm

Either a vector with the abundance per species, or a sites x species matrix.

raref

An integer specifying the number of individuals for rarefaction (individual based). If raref < 1 no rarefaction is made. If raref = 1 rarefaction is made by the minimum abundance among all sites. If raref > 1 rarefaction is made by the abundance indicated. If not specified, default is 0.

runs

Number of resampling runs for rarefaction. If not specified, default is 100.

Details

Classes defined as n = 1, 2-3, 4-7, 8-15, .... Rarefaction allows comparison of sites with different total abundances.

Value

A vector or matrix with the different values per class per community.

Examples

comm1 <- c(20,1,3,100,30)
comm2 <- c(1,2,12,0,45)
comm <- rbind(comm1, comm2)
sad(comm1)
sad(comm)
sad(comm, raref = 1)

[Package BAT version 2.6.0 Index]