is_context | R Documentation |
This function returns TRUE
if the node is a proper context, FALSE
in the other case.
is_context(node)
node |
a |
TRUE
if the node node
is a proper context,
FALSE
when this is not the case
dts <- c(0, 1, 1, 1, 0, 0, 1, 0, 1, 0)
dts_ctree <- ctx_tree(dts, min_size = 1, max_depth = 3)
draw(dts_ctree)
## 0, 0 is a context but 1, 0 is not
is_context(find_sequence(dts_ctree, c(0, 0)))
is_context(find_sequence(dts_ctree, c(1, 0)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.