BAT (version 2.1.1)

sad: 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.

Value

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

Details

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

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataCamp Workspace