print.Knowledge: Print a Knowledge Object

View source: R/knowledge.R

print.KnowledgeR Documentation

Print a Knowledge Object

Description

Print a Knowledge Object

Usage

## S3 method for class 'Knowledge'
print(x, compact = FALSE, wide_vars = FALSE, ...)

Arguments

x

A Knowledge object.

compact

Logical. If TRUE, prints a more compact summary.

wide_vars

Logical. If TRUE, prints the variables in a wide format.

...

Additional arguments (not used).

Value

Invisibly returns the Knowledge object.

Examples

kn <- knowledge(
  tpc_example,
  tier(
    child ~ starts_with("child"),
    youth ~ starts_with("youth"),
    old ~ starts_with("old")
  )
)
print(kn)
print(kn, wide_vars = TRUE)
print(kn, compact = TRUE)


causalDisco documentation built on April 13, 2026, 5:06 p.m.