Skip to contents

This function prints a list of contexts i.e. a contexts object listing ctx_node objects.

Usage

# S3 method for contexts
print(x, reverse = TRUE, ...)

Arguments

x

the contexts object to print

reverse

specifies whether the contexts should be reported in temporal order (FALSE, default value) or in reverse temporal order (TRUE). If the parameter is not specified, the contexts are displayed in order specified by the call to contexts() used to build the context list.

...

additional arguments for the print function.

Value

the x object, invisibly

See also

Examples

dts <- c("A", "B", "C", "A", "A", "B", "B", "C", "C", "A")
dts_tree <- ctx_tree(dts, max_depth = 3)
print(contexts(dts_tree))
#> Contexts:
#>  A
#>  A, B
#>  B
#>  B, C
#>  C