Learn R Programming

EpiModel (version 2.5.0)

auto_update_attr: Update 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

auto_update_attr(dat, newNodes, curr.tab)

Value

The updated netsim_dat main list object.

Arguments

dat

Main netsim_dat object containing a networkDynamic object and other initialization information passed from netsim.

newNodes

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

curr.tab

Current proportional distribution of all vertex attributes.

See Also

copy_nwattr_to_datattr, get_attr_prop, auto_update_attr.