- Home
- CRAN
**GeneralTree**: General Tree Data Structure**as.GeneralTree**: Convert an object to a GeneralTree.

# Convert an object to a GeneralTree.

### Description

Convert an object to a GeneralTree.

### Usage

1 | ```
as.GeneralTree(x, ...)
``` |

### Arguments

`x` |
The object that should be converted. |

`...` |
passed to underlying functions. |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.

- addChild: Add a child at a point in the tree.
- addChild: Add a child at a point in the tree.
- addSibling: Add a sibling to the current node.
- addSibling: Add a sibling to the current node.
- addSiblingNode: Add a node to the list of siblings of the current node.
- addSiblingNode: Add a node to the list of siblings of the current node.
- as.data.frame.GeneralTree: Convert a GeneralTree to a data frame.
- as.data.frame.GeneralTree: Convert a GeneralTree to a data frame.
- as.GeneralTree: Convert an object to a GeneralTree.
- as.GeneralTree: Convert an object to a GeneralTree.
- as.GeneralTree.data.frame: Convert a data frame to a GeneralTree.
- as.GeneralTree.data.frame: Convert a data frame to a GeneralTree.
- as.GeneralTree.expression: Convert a R parsed expression to a GeneralTree.
- as.GeneralTree.expression: Convert a R parsed expression to a GeneralTree.
- branch_depth: Get the depth of a branch.
- branch_depth: Get the depth of a branch.
- branchToList: Convert a branch to a list.
- branchToList: Convert a branch to a list.
- dataWorker: Return the data associated with a node.
- dataWorker: Return the data associated with a node.
- deep_clone: Deep clone a General tree
- deep_clone: Deep clone a General tree
- deep_clone.GeneralTree: Deep clone a General Tree.
- deep_clone.GeneralTree: Deep clone a General Tree.
- delete: Delete all a node and all nodes below that node.
- delete: Delete all a node and all nodes below that node.
- deleteId: Delete a node with a given id.
- deleteId: Delete a node with a given id.
- equals-.GeneralTree: Deep clone a General Tree.
- equals-.GeneralTree: Deep clone a General Tree.
- GeneralTree: A tree that can have multiple childeren per parent.
- GeneralTree: A tree that can have multiple childeren per parent.
- generate_grViz: Create a DiagrammeR graph that represents the tree.
- generate_grViz: Create a DiagrammeR graph that represents the tree.
- getChildData: Get the data of the child nodes below the current node.
- getChildData: Get the data of the child nodes below the current node.
- getChildId: Get the ids of the child nodes below the current node.
- getChildId: Get the ids of the child nodes below the current node.
- getChildNodes: Get all the child nodes below the current node.
- getChildNodes: Get all the child nodes below the current node.
- getIterVal: Function heavily inspired by iterators package.
- getIterVal.GeneralTreeIter: Function heavily inspired by iterators package.
- getIterVal.GeneralTreeIter: Function heavily inspired by iterators package.
- have_child: Tell whether the current node has childeren.
- have_child: Tell whether the current node has childeren.
- have_parent: Returns true when the node has a parent.
- have_parent: Returns true when the node has a parent.
- have_private_siblings: Tell whether the current node has private siblings.
- have_private_siblings: Tell whether the current node has private siblings.
- have_siblings: Tell whether the current node has siblings.
- have_siblings: Tell whether the current node has siblings.
- id: Return the id of the current node.
- id: Return the id of the current node.
- initialize: Initialize a General Tree object.
- initialize: Initialize a General Tree object.
- isDiscovered: Informs whether the node has the discovered bit set.
- isDiscovered: Informs whether the node has the discovered bit set.
- is_last_sibling: Tell whether the current node is the last sibling.
- is_last_sibling: Tell whether the current node is the last sibling.
- is_root: Tell whether the passed node is the root of the tree.
- is_root: Tell whether the passed node is the root of the tree.
- isRootDiscovered: Returns whether the node has the is_root_discovered bit set.
- isSingletonTree: Informs whether the tree is a singleton tree.
- isSingletonTree: Informs whether the tree is a singleton tree.
- iteratorImpl: The implementation of the GeneralTree method iterator.
- iteratorImpl: The implementation of the GeneralTree method iterator.
- iter.GeneralTree: Internal function heavily inspired by iterators package.
- left_child: Return the left child of the node.
- left_child: Return the left child of the node.
- nextElem.GeneralTree: Internal function heavily inspired by iterators package.
- nextElem.GeneralTree: Internal function heavily inspired by iterators package.
- nextElem.GeneralTreeIter: Internal function heavily inspired by iterators package.
- nextElem.GeneralTreeIter: Internal function heavily inspired by iterators package.
- nextElemWorkerImpl: The implementation of the GeneralTree method nextElem.
- nodeInfoToString: Convert a node to string.
- nodeInfoToString: Convert a node to string.
- parent: Get the parent of a node.
- parent: Get the parent of a node.
- plot.GeneralTree: Plot a GeneralTree object.
- plot.GeneralTree: Plot a GeneralTree object.
- print.GeneralTree: Print a GeneralTree object.
- print.GeneralTree: Print a GeneralTree object.
- resetDiscovered: The implementation of the GeneralTree method iterator.
- resetDiscovered: The implementation of the GeneralTree method iterator.
- resetDiscoveredOnBranch: Reset the discover bit of all the nodes on the branch to...
- resetDiscoveredOnBranch: Reset the discover bit of all the nodes on the branch to...
- root: Return the root of the node.
- root: Return the root of the node.
- searchData: Search for an id in starting at a point in the tree and...
- searchData: Search for an id in starting at a point in the tree and...
- searchNode: Search for an id in starting at a point in the tree and...
- setDiscovered: Set the discovered bit to a certain state.
- setDiscovered: Set the discovered bit to a certain state.
- set-.GeneralTree: Deep clone a General Tree.
- set-.GeneralTree: Deep clone a General Tree.
- setRootDiscovered: Set the root discovered bit to a certain state.
- setRootDiscovered: Set the root discovered bit to a certain state.
- siblings: Return the private siblings of the node.
- siblings: Return the private siblings of the node.
- toString: Convert a branch to a string.
- toString: Convert a branch to a string.
- treeDepth: Get the depth of a tree.
- treeDepth: Get the depth of a tree.