Learn R Programming

VBTree (version 0.1.1)

arr2vbt: Convert a structured character array to double list

Description

Convert a structured character array to a vector binary tree. All character elements in array will be splited by a specific pattern then sorted intrinsically in each layer of the vector binary tree.

Usage

arr2vbt(x, ...)

Value

Return a vector binary tree based on the input array.

Arguments

x

A structured character array to be converted.

...

Argument in chrvec2dl to control split pattern.

See Also

arr2dl, chrvec2dl.

Examples

Run this code
#Write the column names of datatest into a array:
arr <- dl2arr(chrvec2dl(colnames(datatest)))

#Recover the vector binary tree from character array:
arr2vbt(arr)

Run the code above in your browser using DataLab