| export_graph {cfid} | R Documentation |
Export Graph
Description
Convert a valid graph object into a supported external format.
Usage
export_graph(
g,
type = c("dagitty", "causaleffect", "dosearch"),
use_bidirected = TRUE,
...
)
Arguments
g |
An object of class |
type |
A character string matching one of the following:
|
use_bidirected |
A logical value indicating if bidirected edges
should be used in the resulting object.
If |
... |
Additional arguments passed to |
Value
If type is "dagitty", returns a dagitty object.
If type is "causaleffect", returns an igraph graph, with its edge
attributes set according to the causaleffect package syntax. If type
is "dosearch", returns a character vector of length one that describes
g in the dosearch package syntax.