phi {untb} | R Documentation |
Hubbell's phi: counts of species abundances
phi(x,addnames=TRUE)
x |
Ecosystem vector; is coerced to class count |
addnames |
Boolean with default
TRUE meaning to set the name of the ith element
to the species with abundance i if unique. Set to
FALSE to suppress this, which is useful if the species names
are long |
Function phi()
coerces its argument to a count
object and
by default returns a named vector whose ith element is the
number of species with i individuals. The name of the
ith element is the species with abundance i if unique
and empty otherwise. Function phi()
is used by
theta.prob()
.
The code for setting the names is a dog's breakfast
Robin K. S. Hankin
S. P. Hubbell 2001. “The Unified Neutral Theory of Biodiversity”. Princeton University Press.
data(butterflies) phi(butterflies,add=FALSE)