powered by
Function that assigns each node in a Community to a body-mass bin.
Community
BodyMassBins(community, lower=min(NP(community,'M'), na.rm=TRUE), upper=max(NP(community,'M'), na.rm=TRUE), n.bins=10)
A vector of length NumberOfNodes.
NumberOfNodes
an object of class Community.
lower bound of the bins.
upper bound of the bins.
the number of bins.
Lawrence Hudson
Divides the range lower to upper in to n.bins equally-spaced log10(M) bins. Assigns each node in the community to one of these bins and returns the bins numbers. The returned vector has attributes bin.centres and breaks.
lower
upper
n.bins
community
bin.centres
breaks
Community, NumberOfNodes
data(TL84) BodyMassBins(TL84)
Run the code above in your browser using DataLab