vbt2dl: Convert a vector binary tree to double list

View source: R/vbtCvrt.R

vbt2dlR Documentation

Convert a vector binary tree to double list

Description

Recover a vector binary tree to double list for easy visualization. Empty layers in vector binary tree will be marked by the symbol "*" as default.

Usage

vbt2dl(x)

Arguments

x

A vector binary tree to be converted.

Value

Return a double list based on input vector binary tree.

See Also

vbtinq, vbtsub, advbtinq, advbtsub, trvssubinq, vbt2ts, vbt2arr.

Examples

#Recover vector binary tree to a double list for easy visualization:
vbt <- dl2vbt(chrvec2dl(colnames(datatest))) #make vector binary tree
vbt2dl(vbt)

CubicZebra/VBTree documentation built on Feb. 3, 2024, 3:42 p.m.