Learn R Programming

EpiModel (version 2.0.5)

update_unique_ids: Create the unique_ids for the new nodes

Description

This function is called by `append_core_attr` and append new unique_ids to the created nodes. It also keeps track of the already used unique_ids with the /codedat[["_last_unique_id"]] variable

Usage

update_unique_ids(dat, n.new)

Arguments

dat

a Master list object of network models

n.new

the number of new nodes to give unique_id to

Value

the Master list object of network models (dat)