vbtinq | R Documentation |
Visit the vector binary tree and return a double list through specific assigment determined
by the argument inq
.
vbtinq(x, inq)
x |
The vector binary tree to be visited. Traversal is available by setting -1 in desired layer. |
inq |
An integer vector to determine desired location. The length of |
Return a double list according to the argument inq
.
vbtsub
, advbtinq
, advbtsub
.
#Make vector binary tree:
colnamevbt <- dl2vbt(chrvec2dl(colnames(datatest)))
#Visit by specific assignment:
vbtinq(colnamevbt, c(2, 3, 1, 1))
#Traversal of the second layers:
vbtinq(colnamevbt, c(2, -1, 1, 1))
#Invalid assignments in 1st and 3rd layers:
vbtinq(colnamevbt, c(4, 3, 7, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.