EpiModel refers to its nodes either by positional identifiers
(posit_ids
), which describe the position of a node in the
attr
vector, or by unique identifiers
(unique_ids
), which allow references to nodes even after
they are deactivated.
get_unique_ids(dat, posit_ids = NULL)get_posit_ids(dat, unique_ids = NULL)
A vector of unique or positional identifiers.
Main netsim_dat
object containing a networkDynamic
object and other initialization information passed from
netsim
.
A vector of node positional identifiers (default = NULL).
A vector of node unique identifiers (default = NULL).
When unique_ids
or posit_ids
is NULL (default)
the full list of positional IDs or unique IDs is returned.
When providing unique_ids
of deactivated nodes to
get_posit_ids
, NA
s are returned instead and a warning is
produced.