Learn R Programming

EpiModel (version 1.8.0)

bipvals: Vertex Attributes for Bipartite Network

Description

Outputs static vertex attributes for a bipartite network for one specified mode.

Usage

bipvals(nw, mode, val)

Arguments

nw

An object of class network or networkDynamic.

mode

Mode number.

val

Nodal attribute to return.

Examples

Run this code
# NOT RUN {
nw <- network.initialize(n = 10, bipartite = 5)
nw <- set.vertex.attribute(nw, "male", rep(0:1, each = 5))
bipvals(nw, mode = 1, "male")

# }

Run the code above in your browser using DataLab