trvseleinq: Using character element to visit the traversal table

View source: R/trvsvisit.R

trvseleinqR Documentation

Using character element to visit the traversal table

Description

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

Usage

trvseleinq(trvs, inq)

Arguments

trvs

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

inq

A desired character element to match the traversal table.

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 character pattern:
trvseleinq(trav,"Strain-1100-0.001-0.6")

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