read_newick {rrnni} | R Documentation |
Read a newick tree
Description
Read a tree in a newick format and convert it to a rankedPhylo
Usage
read_newick(x)
Arguments
x |
a single character string containing tree in a newick format |
Value
object of class "rankedPhylo"
Examples
read_newick("((A:1,B:1):1,C:2);")
# Note, not all valid newick trees are valid ranked trees
try( read_newick("((A,B),C);") )
[Package rrnni version 0.1.1 Index]