Learn R Programming

rphast (version 1.6.9)

name.ancestors: Name Ancestral Nodes

Description

Name ancestors of a tree

Usage

name.ancestors(tree)

Arguments

tree

A vector of character strings, each containing a newick tree

Value

A vector of character strings containing newick trees with all ancestors named.

Examples

Run this code
# NOT RUN {
trees <- c("((hg18, panTro2), mm9);",
           "((hg18:0.142679,(mm9:0.083220,rn4:0.090564):0.269385):
                0.020666,canFam2:0.193569);")
name.ancestors(trees)
# }

Run the code above in your browser using DataLab