| trvsidxinq {VBTree} | R Documentation |
Using vector to visit the traversal table
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
trvsidxinq(trvs, inq)
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
#Make traversal table:
trav <- trvs(dl2vbt(chrvec2dl(colnames(datatest))))
#Visit specific element by its coordinate:
trvsidxinq(trav,c(1,2,3,1))
[Package VBTree version 0.1.1 Index]