This function returns TRUE
if the node is using a reverse temporal ordering
and FALSE
in the other case.
Arguments
- node
a
ctx_node
object as returned byfind_sequence()
Examples
dts <- c(0, 1, 1, 1, 0, 0, 1, 0, 1, 0)
dts_ctree <- ctx_tree(dts, min_size = 1, max_depth = 3)
is_reversed(find_sequence(dts_ctree, c(0, 0)))
#> [1] FALSE
is_reversed(find_sequence(dts_ctree, c(1, 0), reverse = TRUE))
#> [1] TRUE