An R package for manipulating phylogentic trees using an intuitive S4 class structure.
The treeman R package provides a list based class for encoding phylogenetic trees in R, making manipulating phylogenetic trees easier to code and more efficient to run. treeman is aimed to be fast, simple and intuitive.
# working with the TreeMan class
library(treeman)
?TreeMan # check the documentation
tree <- randTree(10) # generate a random tree of 10 tips
summary(tree) # check key stats
tree["tips"] # extract key stats
Bennett, D.J., Sutton, M.D. & Turvey, S.T., 2017. treeman: an R package for efficient and intuitive manipulation of phylogenetic trees. BMC Research Notes, 10(1), p.30. Available online