write.tree {rbiom} | R Documentation |
Write a newick formatted phylogenetic tree.
Description
Write a newick formatted phylogenetic tree.
Usage
write.tree(tree = NULL, file = NULL)
Arguments
tree |
A |
file |
Filename or connection to write the newick file to (optional). |
Value
If file is NULL, the newick string as a character vector. Otherwise,
the return value from writeChar
, typically invsible(NULL).
Examples
library(rbiom)
infile <- system.file("extdata", "newick.tre", package = "rbiom")
tree <- read.tree(infile)
newick <- write.tree(tree)
[Package rbiom version 1.0.3 Index]