Learn R Programming

EpiModel (version 1.8.0)

update_nwattr: Updates Vertex Attributes for Incoming Vertices

Description

Updates the vertex attributes on a network for new nodes incoming into that network, based on a set of rules for each attribute that the user specifies in control.net.

Usage

update_nwattr(nw, newNodes, rules, curr.tab, t1.tab)

Arguments

nw

The networkDynamic object used in netsim simulations.

newNodes

Vector of nodal IDs for incoming nodes at the current time step.

rules

List of rules, one per attribute to be set, governing how to set the values of each attribute.

curr.tab

Current proportional distribution of all vertex attributes.

t1.tab

Proportional distribution of all vertex attributes at the outset of the simulation.

See Also

copy_toall_attr, get_attr_prop, update_nwattr.