search for: specnumb

Displaying 1 result from an estimated 1 matches for "specnumb".

Did you mean: specname
2010 Jul 26
1
Repeated Procedures
...nds, 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 <- specnumber(data) H <- diversity(data) J <- H/log(S) I indexed the 20 areas by a column with the number of each of the areas and have been trying to formulate a code to iterate this procedure for each of the 20 areas and save the results in a table, but I have not been successful. Do anyone...