#' Pielou´s evenness index
#'
#' @param x numeric vector
#'
#' @return
#'
pielou.evenness<- function(x) {
H<- vegan::diversity(x)
nspec<- length(x)
J<- H/log(nspec)
return(J)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.