trvsidxinq: Using vector to visit the traversal table

Description Usage Arguments Value Examples

View source: R/trvsvisit.R

Description

Visit the traversal table generated from a vector binary tree through the coordinate determined by the argument inq, and return an inquiry result containing its numeric item index, its corresponding character pattern and the coordinate.

Usage

1

Arguments

trvs

The traversal table to be visited, which should be generated from the vector binary tree by the function trvs().

inq

An integer vector to assign the coordinate corresponding to the element to be visited.

Value

Return an inquiry result with a numeric item index, a character pattern and its coordinate in form of integer vector.

Examples

1
2
3
4
5
#Make traversal table:
trav <- trvs(dl2vbt(chrvec2dl(colnames(datatest))))

#Visit specific element by its coordinate:
trvsidxinq(trav,c(1,2,3,1))

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