powered by
Outputs group numbers give ID numbers for a two-group network.
idgroup(nw, ids)
Object of class network or networkDynamic.
network
networkDynamic
Vector of ID numbers for which the group number should be returned.
# NOT RUN { nw <- network_initialize(n = 10) nw <- set_vertex_attribute(nw, "group", rep(1:2, each = 5)) idgroup(nw) idgroup(nw, ids = c(3, 6)) # }
Run the code above in your browser using DataLab