overwrite_attrs | R Documentation |
data.frame
to initialize some attributesUses dat$init$init_attr
to overwrite some attributes of the
nodes at initialization
overwrite_attrs(dat)
dat |
Main |
If an init_attr
data.frame
is present in dat$init
, use it to overwrite
the attributes it contains.
init_attr
must have a number of rows equal to the number of nodes in the
model as the attributes will be overwritten one to one, ensuring the correct
ordering.
init_attr
columns MUST have a corresponding attribute already initialized.
See "R/default_attributes.R" for adding new attributes to the model.
init_attr
is removed from dat$init
at the end of the function to free up
its memory.
The updated netsim_dat
main list object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.