as_sequence | R Documentation |
This function returns the sequence represented by the node
object.
as_sequence(node, reverse)
node |
a |
reverse |
specifies whether the sequence should be reported in reverse
temporal order ( |
the sequence represented by the node
object, a vector
dts <- c("A", "B", "C", "A", "A", "B", "B", "C", "C", "A")
dts_tree <- ctx_tree(dts, max_depth = 3)
res <- find_sequence(dts_tree, "A")
as_sequence(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.