Learn R Programming

EpiModel (version 2.5.0)

update_unique_ids: Create the Unique Identifiers for New Nodes

Description

This function is called by append_core_attr and appends new unique_ids to the created nodes. It also keeps track of the already used unique_ids with the dat$run$last_unique_id variable.

Usage

update_unique_ids(dat, n.new)

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.

n.new

The number of new nodes to give unique_ids to.