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

Description Usage Arguments Value Examples

View source: R/tips.r

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))

cmmr/rbiom documentation built on Nov. 21, 2018, 10:04 a.m.