Learn R Programming

EpiModel (version 0.95)

bipvals: Vertex Attributes for Bipartite Network

Description

This function 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 to extract values for.
val
static attribute values to return.

Examples

Run this code
nw <- network.initialize(10, bipartite=5)
nw %v% "sex" <- rep(c("M", "F"), each=5)
bipvals(nw, mode=1, "sex")

Run the code above in your browser using DataLab