Description Usage Arguments Details Examples
Helper method for validating a data.table object as a btree by checking for two children per node, excluding leaves.
1 | has_two_children(btree)
|
btree |
A data.table object with fields |
Returns TRUE
or FALSE
NodeId
1 2 3 | library(data.table)
mytree <- data.table(NodeId=c(1, 2, 3), ParentNodeId=c(NA, 1, 1))
has_two_children(mytree)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.