path_to: Extract a single path

View source: R/paths.R

path_toR 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 or vistla_hierarchy 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 and input is a vistla object, a data.frame in a format identical to this produced by branches, yet without the leaf column.


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

Related to path_to in vistla...