| set_tie_sessions | R Documentation |
Assign or remove tie sessions
set_tie_sessions(dn, session = NULL, breaks = NULL, labels = NULL)
dn |
A temporal network. |
session |
A complete, nonempty character vector of length one or the
raw tie count; a length-one value labels every spell. Default A vector of the full length is matched positionally against the spell
table, not against the data frame the network was built from.
|
breaks |
Optional increasing numeric vector of cut points on the
network's time axis. A spell belongs to the session of the interval its
|
labels |
Optional character vector naming the |
A new dynet object, class
c("dynet", "netobject", "cograph_network"), with a session column on
the spell table and the session scheme recorded in its metadata, or with
both removed when neither session nor breaks is given. Raises
dynet_bad_input when session has neither length one nor the raw tie
count, or carries NA or blank labels; when session and breaks are
both given; when breaks is not increasing and finite; or when labels
does not have one more element than breaks.
dn <- dynet(school_contacts)
weeks <- set_tie_sessions(dn, breaks = c(7, 14),
labels = c("week_1", "week_2", "week_3"))
weeks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.