trvseleinq: Using character element 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 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

1

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

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

#Visit specific element by character pattern:
trvseleinq(trav,"Strain-1100-0.001-0.6")

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