rev.ctx_node {mixvlmc} | R Documentation |
Reverse Sequence
Description
This function reverses the order in which the sequence represented by the
ctx_node
parameter will be reported in other functions, mainly
as_sequence()
.
Usage
## S3 method for class 'ctx_node'
rev(x)
Arguments
x |
a |
Value
a ctx_node
using the opposite ordering convention as the parameter
of the function
See Also
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, c("A", "B"))
print(res)
r_res <- rev(res)
print(r_res)
as_sequence(r_res)
[Package mixvlmc version 0.2.1 Index]