3 \title{Write Tree File in Nexus Format}
5 write.nexus(..., file = "", translate = TRUE, original.data = TRUE)
8 \item{...}{either (i) a single object of class \code{"phylo"}, (ii) a
9 series of such objects separated by commas, or (iii) a list
10 containing such objects.}
11 \item{file}{a file name specified by either a variable of mode character,
12 or a double-quoted string; if \code{file = ""} (the default) then the
13 tree is written on the standard output connection.}
14 \item{translate}{a logical, if \code{TRUE} (the default) a translation
15 of the tip labels is done which are replaced in the parenthetic
16 representation with tokens.}
17 \item{original.data}{a logical, if \code{TRUE} (the default) the
18 data in the original NEXUS file are eventually written in
19 \code{"file"} (see below).}
22 This function writes trees in a file with the NEXUS format.
25 If \code{original.data = TRUE}, the file as specified by the attribute
26 \code{"origin"} of the first tree is read and its data (except the
27 trees) are written in \code{file}.
29 If several trees are given, they must have all the same tip labels.
31 If among the objects given some are not trees of class \code{"phylo"},
32 they are simply skipped and not written to the file.
35 None (invisible `NULL').
38 Maddison, D. R., Swofford, D. L. and Maddison, W. P. (1997) NEXUS: an
39 extensible file format for systematic information. \emph{Systematic
40 Biology}, \bold{46}, 590--621.
43 \author{Emmanuel Paradis \email{Emmanuel.Paradis@mpl.ird.fr}}
45 \code{\link{read.nexus}}, \code{\link{read.tree}},
46 \code{\link{write.tree}}, \code{\link{read.nexus.data}},
47 \code{\link{write.nexus.data}}