Description Usage Arguments Value Examples
Function to convert tree in adjacent list format to edge representation.
1 | adjacent2edge(tree, sep = ", ")
|
tree |
A data.table object with two columns. The first column should have the parent nodes and the second column should have a character vector containing all the children nodes separated by commas (i.e. adjacent list format). |
sep |
character. The separator between elements of the second column |
A data.table object containing two columns: parent and children
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.