write.tree.string: Write a tree file

write.tree.stringR Documentation

Write a tree file

Description

The function writes tree strings to a file in NEXUS or PHYLIP format.

Usage

write.tree.string(X, format = "Nexus", file = "", name = "")

Arguments

X

a vector of tree strings

format

tree file format

file

the file name

name

the species names

Details

If name is provided, the function will use name as the species names in the translation block in the NEXUS tree file. Otherwise, the species names will be extracted from the tree strings.

Value

The function returns a tree file in the format of NEXUS or PHYLIP.

Author(s)

Liang Liu lliu@uga.edu

References

Felsenstein, J. The Newick tree format. http://evolution.genetics.washington.edu/phylip/newicktree.html

See Also

write.subtree, read.tree.string


lliu1871/phybase documentation built on April 21, 2024, 3:16 a.m.