Nothing
test_that("shdi matches vegan's results", {
library(vegan)
data(dune)
df <- table2df(dune)
res <-
shdi(df) %>%
dplyr::mutate(stand = as.numeric(stand)) %>%
dplyr::arrange(stand)
expect_equal(res$s, unname(specnumber(dune)))
expect_equal(res$h, unname(diversity(dune, index="shannon")))
expect_equal(res$d, unname(diversity(dune, index="simpson")))
expect_equal(res$i, unname(diversity(dune, index="invsimpson")))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.