Skip to contents

Compute a species accumulation curve (SAR) using vegan::specaccum(method = "random").

Usage

calculate_species_area(abund_matrix)

Arguments

abund_matrix

A site x species abundance data frame where the first column is site and remaining columns are species abundances.

Value

A data frame with columns:

Sites

Number of sites sampled.

Richness

Mean cumulative species richness.

SD

Standard deviation across permutations.

Details

Uses 100 random permutations by default to estimate mean richness and its standard deviation as a function of the number of sites.

Examples

if (FALSE) { # \dontrun{
sar <- calculate_species_area(abund_matrix)
head(sar)
} # }