write.beast {treeio} | R Documentation |
Export treedata
object to BEAST NEXUS file. This function was adopted and modified from ape::write.nexus
write.beast(treedata, file = "", translate = TRUE, tree.name = "UNTITLED")
treedata |
|
file |
output file. If file = "", print the output content on screen |
translate |
whether translate taxa labels |
tree.name |
name of the tree |
output file or file content on screen
Guangchuang Yu
nhxfile <- system.file("extdata/NHX", "phyldog.nhx", package="treeio") nhx <- read.nhx(nhxfile) write.beast(nhx)