Learn R Programming

VBTree (version 0.1.1)

vbt2dl: 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)

Value

Return a double list based on input vector binary tree.

Arguments

x

A vector binary tree to be converted.

See Also

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

Examples

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

Run the code above in your browser using DataLab