View source: R/path-trajectory.R
| summary.dynet_path_trajectories | R Documentation |
Summarise path trajectories
## S3 method for class 'dynet_path_trajectories'
summary(object, ...)
object |
A |
... |
Ignored. |
A plain data.frame, one row per depth in increasing order:
depth, the number of distinct branches reaching it, the number of
distinct vertices they land on, the summed
count of routes through it, and mean_branching, the average branching
fraction of those routes. Note probability in the underlying table is
CONDITIONAL on each parent, so it is averaged rather than summed: adding
conditional fractions across siblings would not be a probability at all.
Depth zero is the queried vertex itself and has no parent, so its
mean_branching is NA.
dn <- dynet(school_contacts)
routes <- paths(dn, from = "Ana")
trajectories <- path_trajectories(routes)
summary(trajectories)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.