oak v0.2.1


Monthly downloads



Trees Creation and Manipulation

Functions and classes to create and manipulate trees and nodes.


oak: Trees creation and manipulation

Travis-CI Build Status



You can install oak from GitHub with:

# install.packages("devtools")

Functions in oak

Name Description
is.chain Test if a tree is a chain
is.node Test if an object is a node
rtree Tree constructor
root Root(s) of a tree
take_branch Take a branch of a tree
tree_apply Apply a function to each node of a tree
chain Chain constructor
children Children of a node
flatten Flatten a tree
%->% Add a tree at the bottom of a chain
update.rtree Update a tree with new subtrees
as.node Conversion to a node
as.rtree Conversion to an 'rtree' object
reexports Objects exported from other packages
rev.rtree Reverse a chain
ancestors Ancestors of a node
Nodes Nodes Class
as.list.rtree Conversion of a tree to a list
is.tree Test if an object is a tree
label Labels of nodes and trees
leaves Leaves of a tree
Tree Tree Class
is.root Test if a node is a root of a tree
parent Parent of a node
is.rooted Test if a tree has a root
print.rtree Print trees
prune Prune a tree
cut_leaves Cut the leaves of a tree
descendants Descendants of a node
height Height of a tree
is.binary_tree Test if a tree is a binary tree
siblings Siblings of a node
subtrees Subtrees of a tree
No Results!

Last month downloads


Type Package
Date 2018-10-31
License MIT + file LICENSE
LazyData TRUE
URL https://github.com/paulponcet/oak
BugReports https://github.com/paulponcet/oak/issues
RoxygenNote 6.1.0
NeedsCompilation no
Packaged 2018-10-31 14:52:41 UTC; YL1101
Repository CRAN
Date/Publication 2018-11-06 10:20:03 UTC

Include our badge in your README