vbt2ts: Convert a vector binary tree to tensor

Description Usage Arguments Value See Also Examples

View source: R/vbtCvrt.R

Description

Convert a vector binary tree to a tensor. 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 tensor.

Usage

1
vbt2ts(x)

Arguments

x

A vector binary tree to be converted.

Value

Return a tensor filled with the binding character elements.

See Also

vbt2dl, vbt2arr.

Examples

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

#Convert the vector binary tree to a tensor:
vbt2ts(vbt)

VBTree documentation built on May 2, 2019, 12:39 p.m.