add_child | R Documentation |
Add children node
add_child(main_tree, x, assign_node)
main_tree |
the parent tree to be appended with children node |
x |
xth child |
assign_node |
appended node as child |
reshaped tree with children assigned
data("test_df")
data("exercise_df")
test_node <- data.tree::as.Node(test_df)
test_exercise <- data.tree::as.Node(exercise_df)
add_child(main_tree = test_node, x = 4, assign_node = test_exercise )
print(test_node)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.