Learn R Programming

EpiModel (version 0.95)

idmode: Mode Numbers for Bipartite Network

Description

This function outputs mode numbers give ID numbers for a bipartite network.

Usage

idmode(nw, ids)

Arguments

nw
an object of class network or networkDynamic.
ids
a vector of ID numbers for which the mode number should be returned.

See Also

modeids provides the reverse functionality.

Examples

Run this code
nw <- network.initialize(10, bipartite = 5)
idmode(nw)
idmode(nw, ids = 3)

Run the code above in your browser using DataLab