Learn R Programming

cheddar (version 0.1-639)

NumberOfNodes: Number of nodes

Description

Functions that return the number of nodes in the community.

Usage

NumberOfNodes(community)
NumberOfNodesByClass(community, class)
FractionOfNodesByClass(community, class)

Value

NumberOfNodes returns a single number.

NumberOfNodesByClass and FractionOfNodesByClass both return a value for each class.

Arguments

community

an object of class Community.

class

the property over which fn is applied. Defaults to 'category' if the community has a node property with that name.

Author

Lawrence Hudson

See Also

Community, NPS

Examples

Run this code
data(TL84)
NumberOfNodes(TL84)
NumberOfNodesByClass(TL84)
FractionOfNodesByClass(TL84)

Run the code above in your browser using DataLab