shannonRarefy: Generate a rarefaction-type curve based on the Shannon-Weaver...

Description Usage Arguments Value

View source: R/shannonRarefy.R

Description

Generate a rarefaction-type curve based on the Shannon-Weaver diversity index.

Usage

1
shannonRarefy(comm, nrep)

Arguments

comm

A vector with the species ID for each individual in your sample. Each species is represented by a unique integer.

nrep

A number representing the number of random resamplings, without replacement, of comm from which to generate the rarefaction curve.

Value

A dataframe with column RAR representing the rarefaction curve, column SDS being the standard deviation of the rarefaction curve, and column HOB representing the Shannon diversity of the full empirical dataset.


jmcalabrese/shannonRarefy documentation built on May 26, 2019, 2:31 a.m.