ThreeNodeChains | R Documentation |
Enumerates every three-node chain in a food web.
ThreeNodeChains(community, exclude.loops=FALSE, node.properties=NULL, chain.properties=NULL)
community |
an object of class |
exclude.loops |
logical - should loops A -> B -> A be included? |
node.properties |
the names of the node properties to return. Should
meet the criteria of the |
chain.properties |
the names of chain properties to return. |
Enumerates every three-node chain in the food-web and returns a
data.frame
containing the columns bottom, intermediate and
top and any requested node and trophic-link columns.
A data.frame
.
Lawrence Hudson
TLPS
, TrophicChains
data(TL84) nrow(ThreeNodeChains(TL84)) nrow(ThreeNodeChains(TL84, exclude.loops=TRUE)) # bottom, intermediate and top head(ThreeNodeChains(TL84)) # bottom, intermediate, top, bottom.M, intermediate.M and top.M head(ThreeNodeChains(TL84, node.properties='M')) # As above with the addition of bottom.N, intermediate.N and top.N head(ThreeNodeChains(TL84, node.properties=c('M','N')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.