EpiModel refers to its nodes either by positional identifiers
(posit_ids
), the position of the node in the attr
vectors or by unique identifiers (unique_ids
), allowing
to refer 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
a Master list object of network models
a vector of node positional identifiers (default = NULL)
a vector of node unique identifiers (default = NULL)
When unique_ids
or get_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.