Formula as follow: where D m is McIntosh diversity index,N is the total number of individuals in the plant population, N i is the number of individuals of the i th species. R function as follow: #A R function for calculating the mcIntosh diversity index mcIntosh-func ...