rich {EcoVirtual}R Documentation

Number of Species

Description

Count the number of species (species richness) from a vector with a species list.

Usage

rich(x)

Arguments

x

a vector with names.

Details

This function is used internally in the functions 'simHub1', simHub2', and 'simHub3'.

Value

returns the number of species (species richness).

Author(s)

Alexandre Adalardo de Oliveira ecovirtualpackage@gmail.com

Examples


lsp <- sample(LETTERS,50,replace=TRUE)
lsp
rich(lsp)


[Package EcoVirtual version 1.1 Index]