Learn R Programming

phytools (version 0.2-40)

read.newick: Read Newick style tree

Description

This function reads a Newick style tree from file.

Usage

read.newick(file="", text)

Arguments

file
name of text file with single Newick style tree.
text
character string containing tree.

Value

  • a phylogenetic tree of class "phylo"

Details

Note, this function does not do anything that read.tree doesn't do better - and is included mostly for development purposes.

See Also

read.tree, read.nexus

Examples

Run this code
tree<-"((Human,Chimp),Gorilla),Monkey);"
phy<-read.newick(text=tree)

Run the code above in your browser using DataLab