Learn R Programming

phangorn (version 2.12.1)

write.pml: Export pml objects

Description

write.pml writes out the ML tree and the model parameters.

Usage

write.pml(x, file = tempfile(), ...)

Value

write.pml returns the input x invisibly.

Arguments

x

an object of class ancestral.

file

a file name. File endings are added.

...

Further arguments passed to or from other methods.

See Also

ancestral.pml, plotAnc

Examples

Run this code
data(woodmouse)
fit <- pml_bb(woodmouse, "JC", rearrangement = "none")
write.pml(fit, "woodmouse")
unlink(c("woodmouse_pml.txt", "woodmouse_tree.nwk"))

Run the code above in your browser using DataLab