Learn R Programming

benthos (version 1.3-8)

species_richness: 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)

Value

species richness (integer vector of length 1)

Arguments

.data

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

taxon

taxa names (character)

count

number of individuals for each taxon (numeric)

Functions

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

Examples

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

Run the code above in your browser using DataLab