as_sequence {mixvlmc} | R Documentation |
Extract the sequence encoded by a node
Description
This function returns the sequence represented by the node
object.
Usage
as_sequence(node, reverse)
Arguments
node |
a |
reverse |
specifies whether the sequence should be reported in reverse
temporal order ( |
Value
the sequence represented by the node
object, a vector
Examples
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)
[Package mixvlmc version 0.2.1 Index]