paths {vistla}R 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.


[Package vistla version 2.0.2 Index]