Usage
read.tree(file = "", format = "Newick", rooted = TRUE, text = NULL,
tree.names = NULL, skip = 0, comment.char = "#", ...)
Arguments
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 input on the keyboard, the entry being terminated with a blank line.
format
a character giving the format of the tree file; by
default "Newick"
. Currently only the Newick format is available.
rooted
a logical indicating whether the tree is rooted or not;
defaults to TRUE
. This is currently not implemented, meaning
that all trees are read as rooted.
text
alternatively, the name of a variable of mode character
which contains the tree(s) in parenthetic format. By default, this
is ignored (set to NULL
, meaning that the tree is read in a
file); if text
is not NUL
tree.names
if there are several trees to be read, a vector of
mode character that gives names to the individual trees; if
NULL
(the default), the trees are named "tree1"
,
"tree2"
, ...
skip
the number of lines of the input file to skip before
beginning to read data (this is passed directly toscan()
).
comment.char
a single character, the remaining of the line
after this character is ignored (this is passed directly to
scan()
).
...
Further arguments to be passed to scan()
.