vbt2arr: Convert a vector binary tree to array

View source: R/vbtCvrt.R

vbt2arrR Documentation

Convert a vector binary tree to array

Description

Convert a vector binary tree to an array. The pure numeric layers will be sorted intrinsically then all elements will be bound in certain order as one character element, and filled into the proper location in the array.

Usage

vbt2arr(x)

Arguments

x

A vector binary tree to be converted.

Value

Return an array filled with the binding character elements.

See Also

vbt2dl, vbt2ts.

Examples

#Make column names of datatest into vector binary tree:
vbt <- dl2vbt(chrvec2dl(colnames(datatest), "-"))

#Convert the vector binary tree to an array:
vbt2arr(vbt)

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