View source: R/create_subtree.R
create_sub_tree | R Documentation |
Constructs a subtree from a specified Node
within a given Tree
.
This subtree encompasses all descendant attributes of the Node
.
create_sub_tree(tree, node_name, avoid_repetition = FALSE)
tree |
a |
node_name |
A |
avoid_repetition |
A |
A new Tree
object representing the subtree.
Relevant functions and classes that provide more context or might be of interest:
Tree-class
: For an in-depth understanding of the
Tree
class.
Node-class
: To get more details about the structure of
a Node
.
tree <- dexisensitivity::masc2
subtree <- create_sub_tree(masc2, masc2@Nodes[[2]]@Name)
subtree
# Equivalent to :
tree <- dexisensitivity::masc2
subtree <- create_sub_tree(masc2, "Dimension economique")
subtree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.