species_richness: Species Richness

View source: R/indicators.R

species_richnessR Documentation

Species Richness

Description

Species richness (S) is defined as the number of taxa (lowest identification level possible) per sampling unit (data pool or box core sample).

Usage

species_richness(.data = NULL, taxon, count = NULL)

species_richness_(.data = NULL, taxon, count = NULL)

Arguments

.data

data in a data.frame, tibble, data.table, database etc.

taxon

taxa names (character)

count

number of individuals for each taxon (numeric)

Value

species richness (integer vector of length 1)

Functions

  • species_richness_(): version suitable for calling from a function (see package lazyeval).

Examples

 species_richness(
     taxon = c("Euspira pulchella", "Nephtys cirrosa"), 
     count = c(4, 6)
 )
 

benthos documentation built on Aug. 22, 2022, 5:07 p.m.