write.beast: write.beast

Description Usage Arguments Value Author(s) Examples

View source: R/write-beast.R

Description

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

Usage

1
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

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

treeio documentation built on April 29, 2020, 2:20 a.m.