Learn R Programming

rphast (version 1.6.9)

print.tm: Printing Tree Models

Description

Print a tree model

Usage

# S3 method for tm
print(x, aslist = FALSE, ...)

Arguments

x

An object of class tm.

aslist

Logical. If TRUE, print the tree model as a list rather than in tree model format.

...

arguments to be passed to/from other functions

See Also

tm

Examples

Run this code
# NOT RUN {
exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
filename <- "rev.mod"
unzip(exampleArchive, filename)
tm <- read.tm(filename)
tm
print(tm, aslist=TRUE)
unlink(filename)
# }

Run the code above in your browser using DataLab