View source: R/path-trajectory.R
| as.data.frame.dynet_path_trajectories | R Documentation |
Tidy table of a temporal trajectory tree
## S3 method for class 'dynet_path_trajectories'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
A result from |
row.names, optional |
Ignored. |
... |
Ignored. |
A plain data frame with one row per tree node, with the columns
described in path_trajectories() and none of its attributes.
dn <- dynet(school_contacts)
routes <- paths(dn, from = "Ana")
trajectories <- path_trajectories(routes)
as.data.frame(trajectories)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.