This function reads a Newick style tree from file.
read.newick(file="", text, ...)
name of text file with single Newick style tree or multiple trees, one per line.
character string containing tree.
optional arguments to be passed to
scan. Note that if the arguments
what are supplied this could generate an error. Useful optional arguments might include
skip (number of lines to skip) and
nlines (number of lines to read).
An object of class
"phylo", possibly containing singles (see
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).
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.