write.tree.string: Write a tree file

Description Usage Arguments Details Value Author(s) References See Also

Description

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

Usage

1
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


bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.