Description Usage Arguments Value
This function takes a data.table in a tree like structure and returns, for each top node, a data.table with all the descendants (children of children of ...).
1 | getDescendants(tree, parentColname, childColname)
|
tree |
A data.table object. |
parentColname |
The column name of the parent column of tree. |
childColname |
The column name of the child column of tree. |
A data.table object with two columns: the first is the column of all the top level nodes and the next contains all the descendants of that node.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.