Test Whether a Pathway Exists in the Tree
Examples
# \donttest{
tr <- context_tree(matrix(sample(c("A","B"), 50, TRUE), 5),
max_depth = 2L, min_count = 1L)
pathway_exists(tr, "A")
#> [1] TRUE
# }
Test Whether a Pathway Exists in the Tree
# \donttest{
tr <- context_tree(matrix(sample(c("A","B"), 50, TRUE), 5),
max_depth = 2L, min_count = 1L)
pathway_exists(tr, "A")
#> [1] TRUE
# }