View source: R/1b-base-model-function.R
subtree | R Documentation |
Extract subtree
subtree(object, path)
object |
an object of class |
path |
the path from root after which extract the subtree. |
Returns the subtree of the staged event tree, starting from
path
.
A staged event tree object corresponding to the subtree.
DD <- generate_random_dataset(4, 100) model <- sevt(DD, full = TRUE) plot(model) model1 <- subtree(model, path = c("-1", "1")) plot(model1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.