write.pml {phangorn} | R Documentation |
write.pml
writes out the ML tree and the model parameters.
write.pml(x, file = tempfile(), ...)
x |
an object of class ancestral. |
file |
a file name. File endings are added. |
... |
Further arguments passed to or from other methods. |
write.pml
returns the input x invisibly.
data(woodmouse)
fit <- pml_bb(woodmouse, "JC", rearrangement = "none")
write.pml(fit, "woodmouse")
unlink(c("woodmouse_pml.txt", "woodmouse_tree.nwk"))