Robust Newick style tree reader
This function reads a Newick style tree from file.
read.newick(file="", text, ...)
file |
name of text file with single Newick style tree or multiple trees, one per line. |
text |
character string containing tree. |
... |
optional arguments to be passed to |
This function is almost completely redundant with read.tree
; however it is 'robust' in that it does not fail if the tree contains so-called 'singles' (nodes with only one descendant).
An object of class "phylo"
, possibly containing singles (see collapse.singles
).
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
tree<-"((Human,Chimp),Gorilla),Monkey);" phy<-read.newick(text=tree)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.