Read Newick style tree.
read.newick(): this function reads a single Newick style tree from file or from a character string. [Note that this function does not do anything that read.tree() cannot already do, and is mainly presented for development purposes.]
Input
phy<-read.newick(file="",text)
"file" is a text file with a single Newick style tree (v0.1: no branch lengths; v0.2: with or without branch lengths);
"text" is a character string.
Output
read.newick() returns a phylogenetic tree of class "phylo."
E.g.
> tree<-"(((Human,Chimp),Gorilla),Monkey);"
> phy<-read.newick(text=tree)
Citation
Function written by Liam J. Revell 2011.
home
Last modified Feb. 15, 2011.