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

Description Usage Arguments Value Examples

Description

Names of a phylogenetic tree's tips/leafs.

Usage

1
tips(x)

Arguments

x

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

Value

A character vector with the leaf names.

Examples

1
2
3
4
5
6
7
    library(rbiom)
    
    infile <- system.file("extdata", "newick.tre", package = "rbiom")
    tree <- read.tree(infile)
    
    leafs   <- tips(tree)
    subtree <- subtree(tree, head(leafs))

rbiom documentation built on July 2, 2020, 1:47 a.m.