I'm trying to calculate Simpson's diversity()
index for different species (column headings) however I would need to compare the indices between the two treatments.
I have treatments in rows and species in the columns:
treatment plot pinus abies
<chr> <int> <dbl> <dbl>
1 control 1 0.54 0.01
2 logging 2 0.02 0.09
Is there a way to do this? All the examples I've found just have species in columns (dune, BCI). Thanks for the help.