write.nexus {ape} | R Documentation |
This function writes a tree in a file with the NEXUS format.
write.nexus(phy, file = "", translate = TRUE, original.data = TRUE)
phy |
an object of class "phylo" . |
file |
a file name specified by either a variable of mode character,
or a double-quoted string; if file = "" (the default) then the
tree is written on the standard output connection. |
translate |
a logical, if TRUE (the default) a translation
of the tip labels is done which are replaced in the parenthetic
representation with tokens. |
original.data |
a logical, if TRUE (the default) the
data in the original NEXUS file are eventually written in
"file" (see below). |
If original.data = TRUE
, the file as specified by the attribute
"origin"
of phy
is read and its data (except the trees)
are written in file
.
Currently, only a single tree can be written in file
.
None (invisible `NULL').
Emmanuel Paradis paradis@isem.univ-montp2.fr
Maddison, D. R., Swofford, D. L. and Maddison, W. P. (1997) NEXUS: an extensible file format for systemaric information. Systematic Biology, 46, 590621.
read.nexus
, read.tree
,
write.tree