Learn R Programming

rphast (version 1.6.9)

as.list.tm: Tree Model to List

Description

Coerce a tree model into a list

Usage

# S3 method for tm
as.list(x, ...)

Arguments

x

an object of class tm

...

arguments to be passed to/from other functions

See Also

tm

Examples

Run this code
# NOT RUN {
tm <- tm(tree="((human:0.01, chimp:0.01):0.03, mouse:0.3)",
         subst.mod="JC69")
is.list(tm)
is.list(as.list(tm))
# }

Run the code above in your browser using DataLab