powered by
Calculate unbiased estimate of diversity for a vector of items
diversity(x)
charcter or numeric vector or factor
# NOT RUN { x <- sample(1:5, 100, replace = TRUE) diversity(x) # }
Run the code above in your browser using DataLab