diversity: Unbiased Estimate of Diversity

View source: R/diversity.R

diversityR Documentation

Unbiased Estimate of Diversity

Description

Calculate unbiased estimate of diversity for a vector of items

Usage

diversity(x)

Arguments

x

character or numeric vector or factor

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

x <- sample(1:5, 100, replace = TRUE)
diversity(x)


swfscMisc documentation built on Sept. 8, 2023, 5:55 p.m.