extract_node: Extract a node from the MTG

Description Usage Arguments Value Examples

View source: R/mtg_helpers.R

Description

Extract a node from the MTG

Usage

1

Arguments

mtg

An mtg as from read_mtg()

name

The name of the node, e.g. "node_1"

Value

The node (with all its information, parent, children, attributes...)

Examples

1
2
3
filepath= system.file("extdata", "tree1h.mtg", package = "XploRer")
MTG = read_mtg(filepath)
extract_node(MTG,"node_6")

VEZY/XploRer documentation built on Oct. 9, 2021, 10:05 p.m.