show-Tree-method: Show Method for Tree Class Objects

show,Tree-methodR Documentation

Show Method for Tree Class Objects

Description

Custom show method for objects of class Tree. It presents a structured representation of the tree using a specific format.

Usage

## S4 method for signature 'Tree'
show(object)

Arguments

object

An object of class Tree to be shown.

Details

Each node of the tree is displayed with its depth, name, and associated twin attributes. Node presentation differs based on its type and position within the tree structure:

  • Prefix "Z : " is used for the first node of the tree.

  • Prefix "X : " denotes a leaf node.

  • Prefix "Y : " indicates a non-leaf node.

If a tree has no attributes, it displays "*** Tree without attributes ***".

Value

This function is invoked for its side effect of showing a structured display of the tree. It does not return anything explicitly.

See Also

  • print.Tree: For printing a Tree object.

  • Tree-class: For the Tree class definition.


dexisensitivity documentation built on Oct. 30, 2024, 1:08 a.m.