Learn R Programming

cheddar (version 0.1-636)

IsCannibal: Cannibalistic nodes

Description

Nodes that consume themselves in the food web.

Usage

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

Arguments

community

an object of class Community.

Value

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

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
# NOT RUN {
data(TL84)

IsCannibal(TL84)
Cannibals(TL84)
FractionCannibalistic(TL84)
# }

Run the code above in your browser using DataLab