add_root_row | R Documentation |
Add a row to the edges list to represent the root node (if not already present).
add_root_row(tree)
tree |
Dataframe comprising an adjacency matrix, with column names "Parent" and "Identity" |
The same dataframe including a row representing the root node.
Rob Noble, robjohnnoble@gmail.com
tree1 <- data.frame(Parent = c(1,1,1,2,3,4),
Identity = 2:7)
add_root_row(tree1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.