View source: R/wrangle-structure.R
| to_directed | R Documentation |
Convert an Undirected Network to Directed
to_directed(
x,
mode = c("mutual", "arbitrary"),
keep_format = FALSE,
directed = NULL
)
x |
Network input. |
mode |
|
keep_format |
Logical. If TRUE, a matrix, igraph, statnet network or
tna input is returned in its own format. An edge-list data frame or a
qgraph object is returned as a |
directed |
Logical or NULL. Directedness used to read the input. NULL (default) detects it from the input. |
A directed cograph_network, or the input format when
keep_format = TRUE.
to_undirected, reverse_edges
to_directed(to_undirected(regulation_net))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.