write.beast.newick {treeio} | R Documentation |
Export treedata
object to BEAST Newick file. This is useful for making BEAST starting trees with metadata
write.beast.newick( treedata, file = "", append = FALSE, digits = 10, tree.prefix = "" )
treedata |
|
file |
output file. If file = "", print the output content on screen |
append |
logical. Only used if the argument 'file' is the name of file (and not a connection or "|cmd"). If 'TRUE' output will be appended to 'file'; otherwise, it will overwrite the contents of file. |
digits |
integer, the indicating the number of decimal places, default is 10. |
tree.prefix, |
character the tree prefix, default is "". |
output file or file content on screen
Guangchuang Yu
nhxfile <- system.file("extdata/NHX", "phyldog.nhx", package="treeio") nhx <- read.nhx(nhxfile) write.beast.newick(nhx)