followPath: followPath

View source: R/utils_followPath.R

followPathR Documentation

followPath

Description

Takes a hierarchy list (tree), a path written in a vector pasted with sep, and returns the leaf.

Usage

followPath(tree, path, sep = "/", root = "root")

Arguments

tree

explored hierarchy list thanks to path

path

vector of characters matching tree's nodes' names and separated with sep.

sep

separators between path elements (aka tree names)

root

if your path has a root name for root node, enter its name here. Else, enter NULL.


earnaud/MetaShARK-v2 documentation built on Sept. 21, 2022, 10:52 a.m.