powered by
create tree appended with each element of input list as a child
create_tree(input_list, node_name)
a tree with each item of the list as each child
input list to be made for a tree
name of the tree
data("test_df") test_node <- data.tree::as.Node(test_df) new_shape <- create_tree(test_node$children,"new_tree") print(new_shape, "hc")
Run the code above in your browser using DataLab