Learn R Programming

caugi (version 1.0.0)

as_adjacency: Convert a caugi to an adjacency matrix

Description

Does not take other edge types than the one found in a PDAG.

Usage

as_adjacency(x)

Value

An integer 0/1 adjacency matrix with row/col names.

Arguments

x

A caugi object.

See Also

Other conversions: as_bnlearn(), as_caugi(), as_dagitty(), as_igraph()

Examples

Run this code
cg <- caugi(
  A %-->% B,
  class = "DAG"
)
adj <- as_adjacency(cg)

Run the code above in your browser using DataLab