rich {EcoVirtual} | R Documentation |
Count the number of species (species richness) from a vector with a species list.
rich(x)
x |
a vector with names. |
This function is used internally in the functions 'simHub1', simHub2', and 'simHub3'.
returns the number of species (species richness).
Alexandre Adalardo de Oliveira ecovirtualpackage@gmail.com
lsp <- sample(LETTERS,50,replace=TRUE) lsp rich(lsp)