trvs: Make traversal from vector binary tree

View source: R/trvs.R

trvsR Documentation

Make traversal from vector binary tree

Description

Generating a table of traversal from given vector binary tree, in order to construct correct mapping relationships within double list, vector binary tree, array and tensor.

Usage

trvs(x)

Arguments

x

A vector binary tree.

Value

Return a traversal table from the given vector binary tree.

Examples

#Make vector binary tree:
colnamevbt <- dl2vbt(chrvec2dl(colnames(datatest)))

#Construct traversal table:
trvs(colnamevbt)

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