write.beast.treedata {EvoPhylo} | R Documentation |
Export multiple treedata objects (S4 class tree files) to BEAST NEXUS file
Description
This function was adopted and modified from treeio::write.beast to export a list of trees instead of a single tree.
Usage
write.beast.treedata(treedata, file = "",
translate = TRUE, tree.name = "STATE")
Arguments
treedata |
An S4 class object of type |
file |
Output file. If |
translate |
Whether to translate taxa labels. |
tree.name |
Name of the trees, default |
Value
Writes object type treedata
containing multiple trees to a file or file content on screen
Examples
#Load file with multiple trees
## Not run:
trees_file = system.file("extdata", "ex_offset.trees", package = "EvoPhylo")
posterior_trees_offset = treeio::read.beast(trees_file)
#Write multiple trees to screen
write.beast.treedata(posterior_trees_offset)
## End(Not run)
[Package EvoPhylo version 0.3.2 Index]