| as.data.frame.dynet_projection | R Documentation |
Tidy tables from a time-projected network
## S3 method for class 'dynet_projection'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
what = c("vertices", "edges"),
...
)
x |
A projection returned by |
row.names |
Ignored; present for compatibility with the generic. |
optional |
Ignored; present for compatibility with the generic. |
what |
|
... |
Ignored. |
A plain data frame. Vertex rows contain state, optional session
and observation, slice, time, start, end, closed, node,
active, and copied node attributes. Edge rows contain from_state,
to_state, from_node, to_node, optional session, from_slice,
to_slice, from_time, to_time, edge_type, weight, n_spells,
and lag.
dn <- dynet(school_contacts)
projected <- projection(dn, step = 4, window = 4)
as.data.frame(projected)
as.data.frame(projected, what = "edges")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.