Learn R Programming

causalDisco (version 1.0.1)

print.Knowledge: Print a Knowledge Object

Description

Print a Knowledge Object

Usage

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

Value

Invisibly returns the Knowledge object.

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

Examples

Run this code
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)

Run the code above in your browser using DataLab