Dear Friends,
Using package Vegan, I need to calculate Shannons Diversity index
and Pielou's Evenness for a set of 20 study areas. Each area is
represented by a matrix of 25 sample plots x tree species. The code is
as following, where data stands for the data matrix of any of the 20
areas:
S
Hi Alexandre,
You can either initialize the table (using, maybe, all NA entries)
and then put a for loop around your analysis code and write to
different entries or (and this is probably the better way to do it,
but might be more time consuming the first time you try) put the
matrices into an
2 matches
Mail list logo