no.of.ind: Ecosystem diagnostics

Description

Ecosystem diagnostics such as species count, individual count, number of singletons, etc

Usage

1
2
3
4
5
6
7
8

Arguments

x

Ecosystem vector; is coerced to class count

include.extinct

In function no.of.spp(), Boolean argument with TRUE meaning to include extinct species (ie species with an abundance of zero), and default FALSE meaning to return the number of extant species

Details

Note

It is sometimes useful to include species with an abundance of zero when, for example, taking a single row of the Saunders dataframe.

The default for include.extinct is FALSE because this is required for (eg) optimal.theta()

Author(s)

Robin K. S. Hankin

References

S. P. Hubbell. “The Unified Neutral Theory of Biodiversity”. Princeton University Press, 2001.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(butterflies)
no.of.spp(butterflies)
no.of.ind(butterflies)

jj1 <- count(c(dogs=7,pigs=3,crabs=1,slugs=1))
jj2 <- count(c(squid=0,octopus=0,nautilus=0))
jj3 <- count(c(bugs=3,rats=1,crabs=0,fish=0))

extinct(jj1 + jj2) 
extinct(jj3)               #cats 'n' fish
extant(jj3)                #bugs and rats

singletons(jj1)
singletons(jj2)           # empty 
singletons(jj1 + jj3)     # crabs, rats and slugs

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.