powered by
Count the number of species (species richness) from a vector with a species list.
rich(x)
a vector with names.
returns the number of species (species richness).
This function is used internally in the functions 'simHub1', simHub2', and 'simHub3'.
# NOT RUN { lsp <- sample(LETTERS,50,replace=TRUE) lsp rich(lsp) # }
Run the code above in your browser using DataLab