powered by
Calculates the Hill number (naive diversity) of order q of a single population with given relative proportions.
qD_single(proportions, q)
vector of mode numeric; contains the relative proportions of different individuals/types in a population.
vector
numeric
object of class numeric; contains the order of diversity measurement.
Returns the naive divesity of order q.
# NOT RUN { pop <- sample(1:50, 5) qD_single(pop, 0) # }
Run the code above in your browser using DataLab