path_to {vistla}R Documentation

Extract a single path

Description

Gives access to a vector of feature names over a path to a certain target feature.

Usage

path_to(x, target, detailed = FALSE)

Arguments

x

vistla object.

target

target feature name.

detailed

if TRUE, suppresses default output and presents the same paths as a data frame featuring score.

Value

By default, a character vector with names of features along the path from target into root. When detailed is set to TRUE, a data.frame in a format identical to this produced by branches, yet without the leaf column.


[Package vistla version 2.0.1 Index]