census
Construct, coerce, and test for a census object
In package untb, ecosystem data is held in one of two preferred forms:
census data and count data. Function as.census()
coerces to
census format
- Keywords
- math
Usage
census(a)
as.census(a)
is.census(a)
Arguments
- a
- Ecosystem data. In function
as.census()
, if a table, interpret as species count data; otherwise, interpret as census data
Details
A
An object of class census()
takes an object of class
Function as.census()
coerces to class census()
of the result.
Value
- Returns an object of class
census .
See Also
Examples
a <- c(rep("oak",5) ,rep("ash",2),rep("elm",3),rep("xx",4))
# note that "a" is a plain vector here.
as.census(a)