is_ctx_tree: Test if the object is a context tree

View source: R/ctx_tree.R

is_ctx_treeR Documentation

Test if the object is a context tree

Description

This function returns TRUE for context trees and FALSE for other objects.

Usage

is_ctx_tree(x)

Arguments

x

an R object.

Value

TRUE for context trees.

Examples

dts <- c(0, 1, 1, 1, 0, 0, 1, 0, 1, 0)
dts_ctree <- ctx_tree(dts, min_size = 1, max_depth = 2)
is_ctx_tree(dts_ctree)
is_ctx_tree(dts)

mixvlmc documentation built on June 8, 2025, 12:35 p.m.