| remove_vertex_spells | R Documentation |
Remove declared vertex-activity components
remove_vertex_spells(dn, spells)
dn |
A temporal network. |
spells |
Integer positions or a logical mask over
|
A new dynet object, class
c("dynet", "netobject", "cograph_network"), with the selected activity
components dropped and the rest canonicalised again, so the remaining
spell identifiers renumber. A node with no remaining declaration becomes
implicitly always active over observation support. Raises
dynet_bad_input when spells is not a valid selection.
dn <- dynet(school_contacts)
present <- data.frame(node = c("Ana", "Ben"), start = 0, end = 10)
enrolled <- set_vertex_spells(dn, present)
trimmed <- remove_vertex_spells(enrolled, spells = 1)
as.data.frame(trimmed, what = "vertex_spells")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.