no.of.ind {untb} | R Documentation |
Ecosystem diagnostics such as species count, individual count, number of singletons, etc
no.of.ind(x) no.of.spp(x, include.extinct=FALSE) no.of.singletons(x) singletons(x) extinct(x) extant(x)
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. |
Function no.of.spp()
returns the number of species in an
ecosystem object, treating exctinct species in line with argument
include.extinct
.
Function no.of.ind()
returns the number of individuals.
Function no.of.singletons()
returns the number of singletons.
Function no.of.extinct()
returns the number of extinct species.
Function singletons()
returns a count
object containing
only the singletons: each abundance is one.
Function extinct()
returns a count
object containing
only the extinct species: each abundance is zero.
Function extant()
returns a count
object containing
only the extant species: each abundance is greater than zero.
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()
.
In function singletons()
, the code for setting the names
is a dog's breakfast
Robin K. S. Hankin
Hubbell
data(butterflies) no.of.spp(butterflies) no.of.ind(butterflies)