write.pml: Export pml objects

View source: R/pml_generics.R

write.pmlR Documentation

Export pml objects

Description

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

Usage

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

Arguments

x

an object of class ancestral.

file

a file name. File endings are added.

...

Further arguments passed to or from other methods.

Value

write.pml returns the input x invisibly.

See Also

ancestral.pml, plotAnc

Examples

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

KlausVigo/phangorn documentation built on June 23, 2024, 10:49 p.m.