Learn R Programming

⚠️There's a newer version (0.2.3) of this package.Take me there.

oak: Trees creation and manipulation

dfmdjfmsdf

Installation

You can install oak from GitHub with:

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

Copy Link

Version

Install

install.packages('oak')

Monthly Downloads

9

Version

0.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Paul PONCET

Last Published

November 6th, 2018

Functions in oak (0.2.1)

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