Learn R Programming

cheddar (version 0.1-639)

IsCannibal: Cannibalistic nodes

Description

Nodes that consume themselves in the food web.

Usage

IsCannibal(community)
Cannibals(community)
FractionCannibalistic(community)

Value

Either a logical vector of length NumberOfNodes or a vector of names.

Arguments

community

an object of class Community.

Author

Lawrence Hudson

Details

IsCannibal returns a vector of logical of length NumberOfNodes; values are TRUE for nodes consume themselves. Cannibals returns the names of nodes for which IsCannibals returns TRUE. FractionCannibalistic returns the proportion of nodes for which IsCannibal returns TRUE

See Also

RemoveCannibalisticLinks, NumberOfNodes, PredationMatrix, Degree, InDegree, OutDegree, ResourcesByNode, ConsumersByNode, ResourcesOfNodes, ConsumersOfNodes

Examples

Run this code
data(TL84)

IsCannibal(TL84)
Cannibals(TL84)
FractionCannibalistic(TL84)

Run the code above in your browser using DataLab