as.cgraph: Coerce a graph to a Causality Graph

Description Usage Arguments Details Value See Also

View source: R/cgraph.R

Description

Coerce a graph to a Causality Graph

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
as.cgraph(graph)

## S3 method for class 'causality.graph'
as.cgraph(graph)

## Default S3 method:
as.cgraph(graph)

## S3 method for class 'bn'
as.cgraph(graph)

## S3 method for class 'rcausal'
as.cgraph(graph)

Arguments

graph

A (non causality.graph) graph you'd like to attempt to convert into a causality.graph

Details

as.cgraph is an S3 generic that attempts to convert a not causality.cgraph to a "causalality.graph". It currently supports turning "bn" objects and rcausal graphs into causality graphs.

Value

as.cgraph returns a causality graph object, or NULL.

See Also

See cgraph for the documentation of object


tzimiskes/causality documentation built on Sept. 15, 2019, 8:41 p.m.