powered by
Names of a phylogenetic tree's tips/leafs.
tips(x)
A character vector with the leaf names.
A phylo object, as returned from read.tree..
library(rbiom) infile <- system.file("extdata", "newick.tre", package = "rbiom") tree <- read.tree(infile) leafs <- tips(tree) subtree <- subtree(tree, head(leafs))
Run the code above in your browser using DataLab