Learn R Programming

rbiom (version 1.0.3)

tips: Names of a phylogenetic tree's tips/leafs.

Description

Names of a phylogenetic tree's tips/leafs.

Usage

tips(x)

Value

A character vector with the leaf names.

Arguments

x

A phylo object, as returned from read.tree..

Examples

Run this code
    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