| add_nodes | R Documentation |
Add nodes to a temporal network
add_nodes(dn, data)
dn |
A temporal network from |
data |
A character vector of new node names or a data frame containing
a |
Existing nodes and attributes are unchanged. Missing attribute
values are filled with typed NA. If the source has a cograph grouping,
each new node must supply its group through a groups column in data
or through the source attribute from which that grouping was derived;
otherwise a condition of class dynet_missing_group is raised.
A new dynet object, of the same class and structure as the input,
with the added nodes represented as implicit always-active isolates until
ties or vertex activity are supplied. The input is unchanged.
dn <- dynet(data.frame(from = "A", to = "B", start = 0, end = 1))
add_nodes(dn, "C")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.