#' shannon
#'
#' Calculate shannon.
#' @param data.frame as specified in details.
#' @keywords data preparation
#' @export
#' @examples
#' shannon()
shannon <- function(x){
return(round(diversity(x[[1]]),3))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.