Learn R Programming

mixvlmc (version 0.2.1)

is_reversed: Report the ordering convention of the node

Description

This function returns TRUE if the node is using a reverse temporal ordering and FALSE in the other case.

Usage

is_reversed(node)

Value

TRUE if the node node use a reverse temporal ordering, FALSE

when this is not the case

Arguments

node

a ctx_node object as returned by find_sequence()

See Also

rev.ctx_node()

Examples

Run this code
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)))
is_reversed(find_sequence(dts_ctree, c(1, 0), reverse = TRUE))

Run the code above in your browser using DataLab