View source: R/net.fn.track.attrs.R
| tracked_attrs_record | R Documentation |
Compares the current attribute values against the reference snapshot taken
by tracked_attrs_set_ref and records only the changes via
record_attr_history.
Four types of changes are detected:
New attributes: attributes absent from the reference but present now (e.g., created by a module on its first call), recorded for all nodes.
Departures: nodes present in the reference but absent now (recorded
as active = 0L).
Arrivals: nodes absent from the reference but present now (all tracked attribute values recorded).
Value changes: persisting nodes whose attribute value differs from
the reference, including NA transitions.
A tracked attribute that does not exist at the end of a step is an error.
tracked_attrs_record(dat)
dat |
Main |
The updated netsim_dat main list object.
tracked_attrs_set_ref(), record_attr_history()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.