Description Usage Arguments Value Examples
Return or print a string representation of the combination of kernels represented by a given model tree
1 2 3 4 5 | ## S3 method for class 'ModelTree'
as.character(model.tree, show.node.ids = FALSE)
## S3 method for class 'ModelTree'
print(model.tree, show.node.ids = FALSE)
|
model.tree |
a modelTree object |
show.node.ids |
boolean indicating whether the string should be annotated with the associated node numbers. |
a string representing a modelTree object
1 2 3 4 5 6 7 8 9 10 11 | mt <- create.model.tree.builtin()
mt <- insert.kernel.instance(mt, 1, "SE", NULL)
mt <- insert.kernel.instance(mt, 1, "SE", "+")
as.character(mt) #"( SE.1 + SE.2 )"
as.character(mt, show.node.ids=TRUE) #"[3: ( [1: SE.1 :1] + [2: SE.2 :2] ) :3]"
print(mt) #"( SE.1 + SE.2 )"
print(mt, show.node.ids=TRUE) #"[3: ( [1: SE.1 :1] + [2: SE.2 :2] ) :3]"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.