paths: List all paths

View source: R/paths.R

pathsR Documentation

List all paths

Description

Executes path_to for all path possible targets and returns a list with the results.

Usage

paths(x, targets_only = !is.null(x$targets), detailed = FALSE)

Arguments

x

vistla or vistla_hierarchy object.

targets_only

if TRUE, only paths to targets are extracted. By default, turned on when x has targets, and off otherwise. Ignored when x is a vistla_hierarchy.

detailed

passed to path_to. If TRUE, suppresses default output and presents the same paths in a form of data frames featuring score.

Value

A named list with one element per leaf or target, containing the path between this feature and root, in a format identical to this used by the path_to function.


vistla documentation built on Sept. 28, 2024, 1:08 a.m.

Related to paths in vistla...