Learn R Programming

EpiModel (version 1.8.0)

idmode: Mode Numbers for Bipartite Network

Description

Outputs mode numbers give ID numbers for a bipartite network.

Usage

idmode(nw, ids)

Arguments

nw

Object of class network or networkDynamic.

ids

Vector of ID numbers for which the mode number should be returned.

See Also

modeids provides the reverse functionality.

Examples

Run this code
# NOT RUN {
nw <- network.initialize(10, bipartite = 5)
idmode(nw)
idmode(nw, ids = c(3, 6))

# }

Run the code above in your browser using DataLab