as.data.frame.dynet_path_trajectories: Tidy table of a temporal trajectory tree

View source: R/path-trajectory.R

as.data.frame.dynet_path_trajectoriesR Documentation

Tidy table of a temporal trajectory tree

Description

Tidy table of a temporal trajectory tree

Usage

## S3 method for class 'dynet_path_trajectories'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

A result from path_trajectories().

row.names, optional

Ignored.

...

Ignored.

Value

A plain data frame with one row per tree node, with the columns described in path_trajectories() and none of its attributes.

Examples

dn <- dynet(school_contacts)
routes <- paths(dn, from = "Ana")
trajectories <- path_trajectories(routes)
as.data.frame(trajectories)

Dynet documentation built on Oct. 7, 2026, 5:08 p.m.