Calculate unbiased estimate of diversity for a vector of items
diversity(x)
x
charcter or numeric vector or factor
Eric Archer eric.archer@noaa.gov