write.beast {treeio}R Documentation

write.beast

Description

Export treedata object to BEAST NEXUS file. This function was adopted and modified from ape::write.nexus

Usage

write.beast(treedata, file = "", translate = TRUE, tree.name = "UNTITLED")

Arguments

treedata

treedata object

file

output file. If file = "", print the output content on screen

translate

whether translate taxa labels

tree.name

name of the tree

Value

output file or file content on screen

Author(s)

Guangchuang Yu

Examples

nhxfile <- system.file("extdata/NHX", "phyldog.nhx", package="treeio")
nhx <- read.nhx(nhxfile)
write.beast(nhx)

[Package treeio version 1.17.2 Index]