| set_observations | R Documentation |
Replace observation support
set_observations(dn, data = NULL, start = NULL, end = NULL)
dn |
A temporal network. |
data |
Optional data frame with |
start, end |
Optional scalar continuous bounds used instead of |
A new dynet object, class
c("dynet", "netobject", "cograph_network"). Raw edge and vertex spells
are unchanged – as.data.frame(x) still returns the originals – and
only the non-destructive measurement view is replaced, so every verb now
clips exposure and path horizons to this support. Read the components
back with as.data.frame(x, what = "observations"), one row per
component with observation, start, end, duration and instant.
Raises dynet_bad_input when neither or both of data and the bounds
are given.
dn <- dynet(school_contacts)
first_week <- set_observations(dn, start = 0, end = 7)
as.data.frame(first_week, what = "observations")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.