Learn R Programming

benthos (version 1.3-4)

hurlbert: Hurlbert's Expected Number of Species

Description

The expected number of species in a sample of n individuals:

Usage

hurlbert(.data = NULL, taxon, count, n = 100L)

hurlbert_(.data = NULL, taxon, count, n = 100L)

Arguments

.data

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

taxon

name of column in .data containing taxa

count

name of column in .data containing counts

n

number of individuals in a standard sample

Value

expected number of species in a sample of n individuals

Functions

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

References

Hurlbert, S.H., 1971. The Nonconcept of Species Diversity: A Critique and Alternative Parameters. Ecology 52:577-586.

Examples

Run this code
# NOT RUN {
     hurlbert(
         taxon = c("Euspira pulchella", "Nephtys cirrosa"), 
         count = c(4, 6),
         n = 8
     )
     
# }

Run the code above in your browser using DataLab