In package untb, ecosystem data is held in one of two preferred forms:
census data and count data. Function
count creates an object
of class “count”, and
as.count() coerces to this class.
1 2 3
Ecosystem data. In function
A “count” object is a list of species together with their abundance. It also has class “table”; compare “census” objects.
An object of class “count” is a table sorted from most to least abundant species. The singletons are thus tabulated last.
count() takes a vector, the elements of which are
interpreted as abundances. If any of the elements are named, the
names are interpreted as species names (unnamed elements are given the
null name). If the vector is unnamed, then the species names are
upper case letters, with the first element being named
A”, the second “
B”, and so on; this
behaviour is inherited from
as.table(). Note that this means
that the species names are not necessarily in alphabetical order.
From version 1.6-9, zero elements are interpreted as zero abundance
species (ie extinct).
To access or change species names, use
as.count() coerces its argument to count form.
Returns an object of class “count”.
Robin K. S. Hankin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.