causality-IO: Read and write causality graphs

Description Usage Arguments Details Value Note Author(s) Examples

Description

write_causality_graph writes a causality graph to file

Usage

1
2
3

Arguments

graph

The graph you wish to save.

file

The file you wish to read/write graph from/to

Details

read_causality_graph reads a causality graph from file

Value

read_causality_graph returns an object of class "causality.graph". An error will be thrown if there does not exist a valid path to file, graph is not a graph, or the file you wish to read does not contain a graph in TETRAD format.

Note

file will be output as a TETRAD compatible graph, and file must be a TETRAD compatible graph if you wish to read it into R.

Author(s)

Alexander Rix

Examples

1
2
3
## Not run: write_causality_graph(sachs.dag, file = "sachs")
# Will throw an error if PATH_TO_FILE is invalid
## Not run: graph <-read_causality_graph(file = "PATH_TO_FILE")

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