Coerce a context tree to a Tidy Data Frame
Source:R/context_tree.R
as.data.frame.transitiontrees.RdReturns the canonical tidy node table — identical to
tree_pathways(tree). Lets users do
as.data.frame(tree) and immediately filter, sort, or export
with base-R idioms.
Usage
# S3 method for class 'transitiontrees'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)Arguments
- x
A
transitiontrees.- row.names, optional
Ignored.
- ...
Forwarded to
tree_pathways().
Value
A data.frame with columns pathway, depth,
count, likely_next, next_probability,
divergence, changes_prediction. See
tree_pathways.