diversity | R Documentation |
Calculate unbiased estimate of diversity for a vector of items
diversity(x)
x |
character or numeric vector or factor |
Eric Archer eric.archer@noaa.gov
x <- sample(1:5, 100, replace = TRUE)
diversity(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.