Learn R Programming

mixvlmc (version 0.2.1)

print.contexts: Print a context list

Description

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, ...)

Value

the x object, invisibly

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.

See Also

contexts()

Examples

Run this code
dts <- c("A", "B", "C", "A", "A", "B", "B", "C", "C", "A")
dts_tree <- ctx_tree(dts, max_depth = 3)
print(contexts(dts_tree))

Run the code above in your browser using DataLab