write.tm: Wrting Tree Models

Description Usage Arguments Author(s) See Also Examples

View source: R/treeModel.R

Description

Write a tree model to a file (or to the terminal)

Usage

1
write.tm(tm, filename = NULL, append = FALSE)

Arguments

tm

An object of class "tm"

filename

The filename to write to (use NULL for output to terminal)

append

Whether to append the tree to the end of the file (if FALSE, overwrites file). Not used if filename is NULL

Author(s)

Melissa J. Hubisz and Adam Siepel

See Also

tm

Examples

1
2
3
4
5
6
7
8
exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
filename <- "rev.mod"
unzip(exampleArchive, filename)
tm <- read.tm(filename)
tm
write.tm(tm, NULL)
write.tm(tm, "test.mod")
unlink(c(filename, "test.mod"))

rphast documentation built on May 1, 2019, 9:26 p.m.