Description Usage Arguments Value See Also Examples
Visit the vector binary tree and generate a sub tree from visited vector binary tree, through
specific assigment determined by the argument inq
.
1 | vbtsub(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 the visiting location. The length of |
Return a sub tree from visited vector binary tree, according to the argument inq
.
1 2 3 4 5 6 7 8 9 10 11 | #Make vector binary tree:
colnamevbt <- dl2vbt(chrvec2dl(colnames(datatest)))
#Generating sub tree by specific assignment:
vbtsub(colnamevbt, c(2, 3, 1, 1))
#Generating sub tree with traversal in the second layers:
vbtsub(colnamevbt, c(2, -1, 1, 1))
#Generating sub tree with invalid assignments in 1st and 3rd layers:
vbtsub(colnamevbt, c(4, 3, 7, 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.