Learn R Programming

oak: Trees creation and manipulation

Installation

You can install oak from GitHub with:

# install.packages("devtools")
devtools::install_github("paulponcet/oak")

Copy Link

Version

Install

install.packages('oak')

Version

0.2.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 22nd, 2019

Functions in oak (0.2.3)

as.node

Conversion to a node
parent

Parent of a node
tree_apply

Apply a function to each node of a tree
take_branch

Take a branch of a tree
is.binary_tree

Test if a tree is a binary tree
ancestors

Ancestors of a node
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
siblings

Siblings of a node
rev.rtree

Reverse a chain
reexports

Objects exported from other packages
subtrees

Subtrees of a tree
is.root

Test if a node is a root of a tree
update.rtree

Update a tree with new subtrees
is.rooted

Test if a tree has a root
print.rtree

Print trees
chain

Chain constructor
children

Children of a node
prune

Prune a tree
is.chain

Test if a tree is a chain
Nodes

Nodes Class
Tree

Tree Class
is.node

Test if an object is a node
root

Root(s) of a tree
rtree

Tree constructor
cut_leaves

Cut the leaves of a tree
descendants

Descendants of a node
as.rtree

Conversion to an 'rtree' object
height

Height of a tree
leaves

Leaves of a tree
flatten

Flatten a tree
%->%

Add a tree at the bottom of a chain