| rename_nodes | R Documentation |
Rename nodes everywhere in a temporal network
rename_nodes(dn, mapping)
dn |
A temporal network. |
mapping |
A named character vector whose names are old node names and
values are replacements, a two-column data frame named |
A new dynet object, class
c("dynet", "netobject", "cograph_network"), with edge endpoints, node
attributes, vertex activity, cograph labels, and groups renamed together.
Raises dynet_unknown_node when an old name is not a vertex,
dynet_duplicate_node when a replacement collides with a name that is
being kept, dynet_unknown_attribute when mapping names a column that
is not a vertex attribute, and dynet_bad_input otherwise.
dn <- dynet(school_contacts)
renamed <- rename_nodes(dn, c(Ana = "Anna", Ben = "Benjamin"))
renamed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.