Learn R Programming

EpiModel (version 1.8.0)

split_bip: Update Attribute Values for a Bipartite Network

Description

Adds new values for attributes in a bipartite network in which there may be arrivals/entries in the first mode, which requires splitting the attribute vector into two, adding the new values, and re-concatenating the two updated vectors.

Usage

split_bip(dat, var, val, nCurrM1, nCurrM2, nArrivals, nArrivalsM2)

Arguments

dat

Master data object passed through netsim simulations.

var

Variable to update.

val

Fixed value to set for all incoming nodes.

nCurrM1

Number currently in mode 1.

nCurrM2

Number currently in mode 2.

narrivals

Number of arrivals/entries in mode 1.

narrivalsM2

Number of arrivals/entries in mode 2.