| update_ties | R Documentation |
Update temporal ties and their attributes
update_ties(dn, ties, data, loops = FALSE)
dn |
A temporal network. |
ties |
Which ties to update: a condition on the spell table,
evaluated the way |
data |
A data frame with one row or one row per selected tie. Columns may be canonical tie fields or arbitrary atomic spell attributes. |
loops |
Whether an endpoint update may introduce a new self-loop.
Existing loops may always be retained. Default |
A new dynet object, class
c("dynet", "netobject", "cograph_network"), holding the unselected
spells unchanged and the selected spells with the supplied values
substituted. Because the edited spells are rebuilt together with the
rest, spell order and the canonical spell identifiers may change. Raises
dynet_loop_not_allowed when an endpoint update would create a new
self-loop without loops = TRUE, and dynet_bad_input when the
selection or data is malformed, or names the read-only derived columns
duration or .raw_spell.
dn <- dynet(school_contacts)
marked <- update_ties(dn, ties = end - start > 1,
data = data.frame(kind = "long"))
marked
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.