| update_nodes | R Documentation |
Update static node attributes
update_nodes(dn, data)
dn |
A temporal network. |
data |
A nonempty data frame with a |
A new dynet object, class
c("dynet", "netobject", "cograph_network"), with the same spells,
vertex activity and metadata as dn and the supplied attributes added to
or replaced on the named vertices. Unnamed vertices keep their existing
values, gaining NA in any column the network did not already have.
Raises dynet_unknown_node when a name is not a vertex, and
dynet_bad_input when data is malformed or names a cograph structural
column (id, label, x, y).
dn <- dynet(data.frame(from = "A", to = "B", start = 0, end = 1))
update_nodes(dn, data.frame(name = "A", role = "initiator"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.