Learn R Programming

rphast (version 1.6.9)

read.newick.tree: Read a Newick Tree from a File

Description

Read a tree from a file

Usage

read.newick.tree(filename)

Arguments

filename

The file containing the tree.

Value

a character string representing the tree in newick format

Details

Reads a tree in newick format

Examples

Run this code
# NOT RUN {
cat(c("((hg18:0.142679,(mm9:0.083220,rn4:0.090564):0.269385):0.020666,canFam2:0.193569);",
      "(human, (mouse, rat));",
      sep="\n"), file="test.nh")
read.newick.tree("test.nh")
unlink("test.nh")
# }

Run the code above in your browser using DataLab